|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.store.mapping.Mapping
com.triactive.jdo.store.mapping.ComplexMapping
com.triactive.jdo.store.mapping.SetMapping
| Field Summary |
| Fields inherited from class com.triactive.jdo.store.mapping.Mapping |
dba, fmd, type |
| Constructor Summary | |
SetMapping(DatabaseAdapter dba,
java.lang.Class type)
|
|
SetMapping(DatabaseAdapter dba,
FieldMetaData fmd)
|
|
| Method Summary | |
SqlExpression |
accessAsFieldIn(FcoExpression objExpr)
Returns an SQL expression representing the persistent field mapped by this mapping within a particular first-class object expression. |
void |
defineConstraints(BaseTable table,
StoreManager.MgmtTransaction mtx)
Causes the mapping object to define whatever constraints it needs on its backing storage, relative to the specified table. |
void |
defineStorage(Table table,
StoreManager.MgmtTransaction mtx)
Causes the mapping object to define whatever backing storage it needs, relative to the specified table. |
void |
deleteObject(StateManager sm)
Deletes an object from the database. |
void |
deleteObjects(java.util.Collection sms)
Deletes a collection of objects from the database. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with another object. |
java.lang.Object |
fetchObject(StateManager sm)
Fetchs an object from the database. |
PersistentSet |
getBackingSet(StateManager sm)
|
int |
hashCode()
Returns a hash code value for this object. |
void |
insertObject(StateManager sm,
java.lang.Object value)
Inserts an object in the database. |
SqlExpression |
newSqlLiteral(QueryStatement qs,
java.lang.Object value)
Returns an SQL expression representing the literal value of a Java object. |
void |
updateObject(StateManager sm,
java.lang.Object value)
Updates an object in the database. |
| Methods inherited from class com.triactive.jdo.store.mapping.Mapping |
getDefaultMappingsByType, getFieldMetaData, getType |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SetMapping(DatabaseAdapter dba,
java.lang.Class type)
public SetMapping(DatabaseAdapter dba,
FieldMetaData fmd)
| Method Detail |
public void defineStorage(Table table,
StoreManager.MgmtTransaction mtx)
Mapping
Storage in this case means only tables, columns, and primary keys.
Other candidate keys, foreign keys, and indexes are added by
Mapping.defineConstraints(com.triactive.jdo.store.sql.BaseTable, com.triactive.jdo.store.StoreManager.MgmtTransaction).
The StoreManager will never call this method more than once.
defineStorage in class Mappingtable - the table relative to which storage should be defined.mtx - the context in which the mapping is being initialized
public void defineConstraints(BaseTable table,
StoreManager.MgmtTransaction mtx)
Mapping
This method only applies to base tables.
It will always be called after calling Mapping.defineStorage(com.triactive.jdo.store.sql.Table, com.triactive.jdo.store.StoreManager.MgmtTransaction) and is
passed the same table argument.
The StoreManager will never call this method more than once.
defineConstraints in class Mappingtable - the table relative to which constraints should be defined.mtx - the context in which the mapping is being initializedpublic PersistentSet getBackingSet(StateManager sm)
public void insertObject(StateManager sm,
java.lang.Object value)
ComplexMapping
insertObject in class ComplexMappingsm - The state manager of the instance owning the Java object being
inserted.value - The object to insert.public java.lang.Object fetchObject(StateManager sm)
ComplexMapping
fetchObject in class ComplexMappingsm - The state manager of the instance owning the Java object being
fetched.
public void updateObject(StateManager sm,
java.lang.Object value)
ComplexMapping
updateObject in class ComplexMappingsm - The state manager of the instance owning the Java object being
updated.value - The object to update.public void deleteObject(StateManager sm)
ComplexMapping
deleteObject in class ComplexMappingsm - The state manager of the instance owning the Java object being
deleted.public void deleteObjects(java.util.Collection sms)
ComplexMapping
deleteObjects in class ComplexMappingsms - The state managers of the instances owning the Java objects being
deleted. Must be non-empty.
public SqlExpression newSqlLiteral(QueryStatement qs,
java.lang.Object value)
Mapping
newSqlLiteral in class Mappingqs - the surrounding query statement for the expressionvalue - the literal valuepublic SqlExpression accessAsFieldIn(FcoExpression objExpr)
Mapping
accessAsFieldIn in class MappingobjExpr - an expression representing a first-class objectpublic int hashCode()
Mapping
hashCode in class Mappingpublic boolean equals(java.lang.Object obj)
Mapping
equals in class Mappingobj - the object to compare with
true if the objects are equal,
false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||