|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
org.datanucleus.store.rdbms.mapping.RDBMSMapping
public abstract class RDBMSMapping
Implementation of the mapping of an RDBMS type.
| Field Summary | |
|---|---|
protected Column |
column
The RDBMS Column being persisted to. |
protected static org.datanucleus.util.Localiser |
LOCALISER_RDBMS
|
protected RDBMSStoreManager |
storeMgr
Store Manager to use for mapping. |
| Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
LOCALISER, mapping |
| Constructor Summary | |
|---|---|
protected |
RDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Create a new Mapping with the given DatabaseAdapter for the given type. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
protected String |
failureMessage(String method,
int position,
Exception e)
Utility to output any error message. |
protected String |
failureMessage(String method,
Object value,
Exception e)
Utility to output any error message. |
protected RDBMSAdapter |
getDatabaseAdapter()
Convenience to access the Datastore adapter as a DatabaseAdapter. |
org.datanucleus.store.mapped.DatastoreField |
getDatastoreField()
Accessor for the datastore field |
String |
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field. |
abstract SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type. |
String |
getUpdateInputParameter()
Accessor for the string to put in any update datastore statements for this field. |
int |
hashCode()
|
boolean |
includeInFetchStatement()
Whether this mapping is included in the fetch statement. |
protected void |
initTypeInfo()
Sets the TypeInfo for the columns of the Mapping. |
boolean |
insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT. |
boolean |
isNullable()
Accessor for whether the mapping is nullable. |
| Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
failureMessage, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getObject, getShort, getString, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER_RDBMS
protected final RDBMSStoreManager storeMgr
protected Column column
| Constructor Detail |
|---|
protected RDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
storeMgr - The Store Manager that this Mapping should use.mapping - Mapping for the underlying java type. This can be null on an "unmapped column".| Method Detail |
|---|
protected RDBMSAdapter getDatabaseAdapter()
public abstract SQLTypeInfo getTypeInfo()
public boolean isNullable()
public boolean includeInFetchStatement()
public boolean insertValuesOnInsert()
public String getInsertionInputParameter()
public String getUpdateInputParameter()
public org.datanucleus.store.mapped.DatastoreField getDatastoreField()
protected void initTypeInfo()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
protected String failureMessage(String method,
int position,
Exception e)
method - The method that failed.position - The position of the columne - The exception
protected String failureMessage(String method,
Object value,
Exception e)
method - The method that failed.value - Value at the positione - The exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||