com.jenkov.mrpersister.impl.mapping
Class CustomObjectMapperBase

java.lang.Object
  extended by com.jenkov.mrpersister.impl.mapping.CustomObjectMapperBase
All Implemented Interfaces:
ICustomObjectMapper
Direct Known Subclasses:
AutoGeneratedColumnsMapper

public abstract class CustomObjectMapperBase
extends java.lang.Object
implements ICustomObjectMapper

An abstract base class for easy implementation of custom object mappers. Extend this class and override the methods you need.

Author:
Jakob Jenkov - Copyright 2005 Jenkov Development

Constructor Summary
CustomObjectMapperBase()
           
 
Method Summary
 IObjectMapping getObjectMapping(java.lang.Object objectMappingKey)
          Creates an object mapping for the given object mapping key.
 java.lang.String getTableName(java.lang.Object objectMappingKey)
           
 void modify(java.lang.Object objectMappingKey, IObjectMapping mapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomObjectMapperBase

public CustomObjectMapperBase()
Method Detail

getObjectMapping

public IObjectMapping getObjectMapping(java.lang.Object objectMappingKey)
                                throws PersistenceException
Description copied from interface: ICustomObjectMapper
Creates an object mapping for the given object mapping key.

Specified by:
getObjectMapping in interface ICustomObjectMapper
Returns:
Throws:
PersistenceException

getTableName

public java.lang.String getTableName(java.lang.Object objectMappingKey)
                              throws PersistenceException
Specified by:
getTableName in interface ICustomObjectMapper
Returns:
Throws:
PersistenceException

modify

public void modify(java.lang.Object objectMappingKey,
                   IObjectMapping mapping)
            throws PersistenceException
Specified by:
modify in interface ICustomObjectMapper
Throws:
PersistenceException