|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.scostore.FKMapStore
public class FKMapStore
Representation of a FK backing for a Map. This class is used where you have a 1-N and the tables are not joined via a link table, instead using a FK. There are 2 possible uses here
| Field Summary | |
|---|---|
protected boolean |
allowsNull
Whether the container allows null elements/values. |
protected java.lang.String |
containsValueStmt
|
protected org.jpox.store.mapped.DatastoreAdapter |
dba
Datastore adapter in use by this store. |
protected org.jpox.store.mapped.DatastoreIdentifier |
elmIdentifier
Identifier for elements in JDOQL queries. |
protected boolean |
iterateUsingDiscriminator
Flag to set whether the iterator statement will use a discriminator or not. |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
keyMapping
Mapping to the key. |
protected boolean |
keysAreEmbedded
Whether the keys are embedded. |
protected boolean |
keysAreSerialised
Whether the keys are serialised. |
protected java.lang.String |
keyType
Type of the key. |
protected org.jpox.metadata.AbstractClassMetaData |
kmd
|
protected static org.jpox.util.Localiser |
LOCALISER
Localiser for messages. |
protected org.jpox.store.mapped.DatastoreContainerObject |
mapTable
|
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
ownerMapping
Mapping to the owner of the container. |
protected org.jpox.metadata.AbstractMemberMetaData |
ownerMemberMetaData
MetaData for the field/property in the owner with this container. |
protected RDBMSManager |
storeMgr
Manager for the store. |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
valueMapping
Mapping to the value. |
protected boolean |
valuesAreEmbedded
Whether the values are embedded. |
protected boolean |
valuesAreSerialised
Whether the values are serialised. |
protected org.jpox.store.mapped.DatastoreClass |
valueTable
|
protected java.lang.String |
valueType
Type of the value. |
protected org.jpox.metadata.AbstractClassMetaData |
vmd
|
| Constructor Summary | |
|---|---|
FKMapStore(org.jpox.metadata.AbstractMemberMetaData fmd,
RDBMSManager storeMgr,
org.jpox.ClassLoaderResolver clr)
Constructor for an Inverse Map. |
|
| Method Summary | |
|---|---|
protected boolean |
allowsBatching()
Convenience method to return if the RDBMS supports batching and the user wants batching. |
void |
clear(org.jpox.StateManager sm)
Method to clear the map of all values. |
void |
clearKeyOfValue(org.jpox.StateManager sm,
java.lang.Object key,
java.lang.Object oldValue)
Utility to clear the key of a value from the Map. |
boolean |
containsKey(org.jpox.StateManager sm,
java.lang.Object key)
Method to check if a key exists in the Map. |
boolean |
containsValue(org.jpox.StateManager sm,
java.lang.Object value)
Method to check if a value exists in the Map. |
org.jpox.store.scostore.SetStore |
entrySetStore()
Accessor for the map entries in the Map. |
java.lang.Object |
get(org.jpox.StateManager sm,
java.lang.Object key)
Method to return the value for a key. |
org.jpox.store.mapped.expression.QueryExpression |
getExistsSubquery(org.jpox.store.mapped.expression.QueryExpression qs,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias)
Method used where a Query uses map.isEmpty(). |
protected org.jpox.store.mapped.expression.QueryExpression |
getGetStatement(org.jpox.StateManager ownerSm,
java.lang.Object key)
Accessor for the Get statement to retrieve a value from the Map. |
java.lang.String |
getKeyType()
Accessor for the key type for storing in this Map. |
org.jpox.store.mapped.mapping.JavaTypeMapping |
getOwnerMapping()
Accessor for the owner mapping. |
org.jpox.store.mapped.expression.QueryExpression |
getSizeSubquery(org.jpox.store.mapped.expression.QueryExpression qs,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias)
Query utility to generate a subquery for the size() of the map. |
protected org.jpox.StateManager |
getStateManagerForEmbeddedPCObject(org.jpox.StateManager sm,
java.lang.Object obj,
JoinTable table)
Method to return the StateManager for an embedded PC object (element, key, value). |
org.jpox.store.StoreManager |
getStoreManager()
Accessor for the RDBMSManager. |
protected java.lang.String |
getUpdateEmbeddedKeyStmt(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
Generate statement for update the field of an embedded key. |
protected java.lang.String |
getUpdateEmbeddedValueStmt(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
Generate statement for update the field of an embedded value. |
protected java.lang.Object |
getValue(org.jpox.StateManager sm,
java.lang.Object key)
Method to retrieve a value from the Map given the key. |
java.lang.String |
getValueType()
Accessor for the value type for storing in this Map. |
protected void |
initialiseStatements()
Method to initialise the statements being used. |
protected boolean |
isEmbeddedMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
Check if the mapping correspond to a non pc object or embedded field |
org.jpox.store.mapped.expression.ScalarExpression |
joinKeysTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression te,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias,
java.lang.Class filteredKeyType,
org.jpox.store.mapped.expression.ScalarExpression kExpr,
org.jpox.store.mapped.DatastoreIdentifier keyTableAlias)
Utility to create a join for keys to be used in a containsKey() query. |
org.jpox.store.mapped.expression.ScalarExpression[] |
joinKeysToGet(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression te,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias,
java.lang.Class filteredKeyType,
org.jpox.store.mapped.DatastoreIdentifier keyTableAlias,
org.jpox.store.mapped.DatastoreIdentifier valueTableAlias)
Used as part of the Querying of Maps where a get(Key) is used. |
org.jpox.store.mapped.expression.ScalarExpression[] |
joinKeysValuesTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
java.lang.Class filteredValueType,
org.jpox.store.mapped.expression.ScalarExpression keyExpr,
org.jpox.store.mapped.expression.ScalarExpression valExpr,
org.jpox.store.mapped.DatastoreIdentifier keyRangeVar,
org.jpox.store.mapped.DatastoreIdentifier valueRangeVar)
Utility to create a join for keys and values to be used in ai containsEntry() query. |
org.jpox.store.mapped.expression.ScalarExpression |
joinValuesTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapRangeVar,
java.lang.Class filteredValueType,
org.jpox.store.mapped.expression.ScalarExpression valExpr,
org.jpox.store.mapped.DatastoreIdentifier valueRangeVar)
Used as part of the Querying of Maps where a containsValue() is used. |
boolean |
keysAreEmbedded()
Accessor for whether the keys are embedded or not. |
boolean |
keysAreSerialised()
Accessor for whether the keys are serialised or not. |
org.jpox.store.scostore.SetStore |
keySetStore(org.jpox.ClassLoaderResolver clr)
Accessor for the keys in the Map. |
org.jpox.store.mapped.expression.QueryExpression |
newQueryStatement(org.jpox.StateManager sm,
java.lang.String candidateClass,
org.jpox.store.mapped.DatastoreIdentifier candidateAlias)
Utility method to return a new QueryStatement for retrieval of the values of this Map. |
org.jpox.store.query.ResultObjectFactory |
newResultObjectFactory(org.jpox.StateManager sm,
org.jpox.store.mapped.expression.QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
Method to create a Result Object factory for extracting objects from a ResultSet. |
protected int |
populateEmbeddedKeyFieldsInStatement(org.jpox.StateManager sm,
java.lang.Object key,
java.sql.PreparedStatement ps,
int jdbcPosition,
JoinTable joinTable)
Convenience method to populate the passed PreparedStatement with the field values from the embedded key starting at the specified jdbc position. |
protected int |
populateEmbeddedValueFieldsInStatement(org.jpox.StateManager sm,
java.lang.Object value,
java.sql.PreparedStatement ps,
int jdbcPosition,
JoinTable joinTable)
Convenience method to populate the passed PreparedStatement with the field values from the embedded value starting at the specified jdbc position. |
protected int |
populateKeyInStatement(org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
java.lang.Object key,
int jdbcPosition)
Convenience method to populate the passed PreparedStatement with the value for the key. |
protected int |
populateOwnerInStatement(org.jpox.StateManager sm,
org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
int jdbcPosition)
Convenience method to populate the passed PreparedStatement with the value from the owner. |
protected int |
populateValueInStatement(org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
java.lang.Object value,
int jdbcPosition)
Convenience method to populate the passed PreparedStatement with the value for the value. |
java.lang.Object |
put(org.jpox.StateManager sm,
java.lang.Object newKey,
java.lang.Object newValue)
Method to put an item in the Map. |
void |
putAll(org.jpox.StateManager sm,
java.util.Map m)
Method to put all elements from a Map into our Map. |
java.lang.Object |
remove(org.jpox.StateManager sm,
java.lang.Object key)
Method to remove an item from the map. |
protected void |
setOwnerMemberMetaData(org.jpox.metadata.AbstractMemberMetaData mmd)
Method to set the owner field/property MetaData and sets whether null elements/values are allowed. |
boolean |
updateEmbeddedKey(org.jpox.StateManager sm,
java.lang.Object key,
int fieldNumber,
java.lang.Object newValue)
Method to update a field of an embedded key. |
boolean |
updateEmbeddedValue(org.jpox.StateManager sm,
java.lang.Object value,
int fieldNumber,
java.lang.Object newValue)
Method to update a field of an embedded key. |
protected boolean |
validateKeyForReading(org.jpox.StateManager sm,
java.lang.Object key)
Utility to validate a key is ok for reading. |
protected void |
validateKeyForWriting(org.jpox.StateManager sm,
java.lang.Object key)
Utility to validate a key is ok for writing (present in the datastore). |
protected void |
validateKeyType(org.jpox.ClassLoaderResolver clr,
java.lang.Object key)
Utility to validate the type of a key for storing in the Map. |
protected boolean |
validateValueForReading(org.jpox.StateManager sm,
java.lang.Object value)
Utility to validate a value is ok for reading. |
protected void |
validateValueForWriting(org.jpox.StateManager sm,
java.lang.Object value)
Utility to validate a value is ok for writing (present in the datastore). |
protected void |
validateValueType(org.jpox.ClassLoaderResolver clr,
java.lang.Object value)
Utility to validate the type of a value for storing in the Map. |
boolean |
valuesAreEmbedded()
Accessor for whether the values are embedded or not. |
boolean |
valuesAreSerialised()
Accessor for whether the values are serialised or not. |
org.jpox.store.scostore.SetStore |
valueSetStore(org.jpox.ClassLoaderResolver clr)
Accessor for the values in the Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jpox.store.scostore.Store |
|---|
getStoreManager |
| Field Detail |
|---|
protected boolean iterateUsingDiscriminator
protected org.jpox.store.mapped.DatastoreContainerObject mapTable
protected org.jpox.store.mapped.DatastoreClass valueTable
protected org.jpox.metadata.AbstractClassMetaData kmd
protected org.jpox.metadata.AbstractClassMetaData vmd
protected org.jpox.store.mapped.mapping.JavaTypeMapping keyMapping
protected org.jpox.store.mapped.mapping.JavaTypeMapping valueMapping
protected java.lang.String keyType
protected java.lang.String valueType
protected boolean keysAreEmbedded
protected boolean keysAreSerialised
protected boolean valuesAreEmbedded
protected boolean valuesAreSerialised
protected java.lang.String containsValueStmt
protected final org.jpox.store.mapped.DatastoreIdentifier elmIdentifier
protected static final org.jpox.util.Localiser LOCALISER
protected RDBMSManager storeMgr
protected org.jpox.store.mapped.DatastoreAdapter dba
protected org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping
protected org.jpox.metadata.AbstractMemberMetaData ownerMemberMetaData
protected boolean allowsNull
| Constructor Detail |
|---|
public FKMapStore(org.jpox.metadata.AbstractMemberMetaData fmd,
RDBMSManager storeMgr,
org.jpox.ClassLoaderResolver clr)
fmd - Field Meta-Data for the Map field.storeMgr - The Store Manager we are using.clr - The ClassLoaderResolver| Method Detail |
|---|
protected org.jpox.store.mapped.expression.QueryExpression getGetStatement(org.jpox.StateManager ownerSm,
java.lang.Object key)
ownerSm - The owner StateManagerkey - The search key
protected void validateValueType(org.jpox.ClassLoaderResolver clr,
java.lang.Object value)
value - The value to check.clr - The ClassLoaderResolver
public java.lang.Object put(org.jpox.StateManager sm,
java.lang.Object newKey,
java.lang.Object newValue)
sm - State Manager for the map.newKey - The key to store the value againstnewValue - The value to store.
public java.lang.Object remove(org.jpox.StateManager sm,
java.lang.Object key)
sm - State Manager for the map.key - Key of the item to remove.
public void clear(org.jpox.StateManager sm)
sm - State Manager for the map.
public void clearKeyOfValue(org.jpox.StateManager sm,
java.lang.Object key,
java.lang.Object oldValue)
sm - State Manager for the map.key - Key of the objectoldValue - Value to removepublic org.jpox.store.scostore.SetStore keySetStore(org.jpox.ClassLoaderResolver clr)
clr - The ClassLoaderResolver
public org.jpox.store.scostore.SetStore valueSetStore(org.jpox.ClassLoaderResolver clr)
clr - The ClassLoaderResolver
public org.jpox.store.scostore.SetStore entrySetStore()
public org.jpox.store.mapped.expression.QueryExpression newQueryStatement(org.jpox.StateManager sm,
java.lang.String candidateClass,
org.jpox.store.mapped.DatastoreIdentifier candidateAlias)
sm - StateManager for this objectcandidateClass - Class for the value end of the link.candidateAlias - Alias for the candidate
public org.jpox.store.mapped.expression.ScalarExpression joinKeysTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression te,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias,
java.lang.Class filteredKeyType,
org.jpox.store.mapped.expression.ScalarExpression kExpr,
org.jpox.store.mapped.DatastoreIdentifier keyTableAlias)
stmt - The Query StatementparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerte - Table Expression for the ownermapTableAlias - Alias for the "Map" table.filteredKeyType - The Class Type for the filtered keykeyTableAlias - The SQL alias to assign to the expression or to the key table.kExpr - the expression to the key field
public org.jpox.store.mapped.expression.ScalarExpression joinValuesTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapRangeVar,
java.lang.Class filteredValueType,
org.jpox.store.mapped.expression.ScalarExpression valExpr,
org.jpox.store.mapped.DatastoreIdentifier valueRangeVar)
stmt - The Query StatementparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerownerTe - Table Expression for the ownermapRangeVar - The range variable for the "Map" table.filteredValueType - The Class Type for the filtered valuevalExpr - Table Expression for the valuevalueRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the value table.
public org.jpox.store.mapped.expression.ScalarExpression[] joinKeysValuesTo(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
java.lang.Class filteredValueType,
org.jpox.store.mapped.expression.ScalarExpression keyExpr,
org.jpox.store.mapped.expression.ScalarExpression valExpr,
org.jpox.store.mapped.DatastoreIdentifier keyRangeVar,
org.jpox.store.mapped.DatastoreIdentifier valueRangeVar)
stmt - The Query Statement to apply the joinparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerownerTe - Table Expression for the ownermapRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the main table.filteredKeyType - The Class Type for the filtered keyfilteredValueType - The Class Type for the filtered valuekeyExpr - the expression to the key fieldvalExpr - Table Expression for the valuekeyRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the key table.valueRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the value table.
protected void initialiseStatements()
public boolean keysAreEmbedded()
keysAreEmbedded in interface org.jpox.store.scostore.MapStorepublic boolean keysAreSerialised()
keysAreSerialised in interface org.jpox.store.scostore.MapStorepublic boolean valuesAreEmbedded()
valuesAreEmbedded in interface org.jpox.store.scostore.MapStorepublic boolean valuesAreSerialised()
valuesAreSerialised in interface org.jpox.store.scostore.MapStorepublic java.lang.String getKeyType()
getKeyType in interface org.jpox.store.scostore.MapStorepublic java.lang.String getValueType()
getValueType in interface org.jpox.store.scostore.MapStore
public boolean containsKey(org.jpox.StateManager sm,
java.lang.Object key)
containsKey in interface org.jpox.store.scostore.MapStoresm - State Manager for the mapkey - The key to check for.
public boolean containsValue(org.jpox.StateManager sm,
java.lang.Object value)
containsValue in interface org.jpox.store.scostore.MapStoresm - State Manager for the mapvalue - The value to check for.
public java.lang.Object get(org.jpox.StateManager sm,
java.lang.Object key)
get in interface org.jpox.store.scostore.MapStoresm - State Manager for the Map.key - The key of the object to retrieve.
public void putAll(org.jpox.StateManager sm,
java.util.Map m)
putAll in interface org.jpox.store.scostore.MapStoresm - State Manager for the Mapm - The Map to add
protected void validateKeyType(org.jpox.ClassLoaderResolver clr,
java.lang.Object key)
clr - The ClassLoaderResolverkey - The key to check.
protected boolean validateKeyForReading(org.jpox.StateManager sm,
java.lang.Object key)
sm - State Manager for the map.key - The key to check.
protected boolean validateValueForReading(org.jpox.StateManager sm,
java.lang.Object value)
sm - State Manager for the map.value - The value to check.
protected void validateKeyForWriting(org.jpox.StateManager sm,
java.lang.Object key)
sm - State Manager for the map.key - The key to check.
protected void validateValueForWriting(org.jpox.StateManager sm,
java.lang.Object value)
sm - State Manager for the map.value - The value to check.
protected java.lang.Object getValue(org.jpox.StateManager sm,
java.lang.Object key)
throws java.util.NoSuchElementException
sm - State Manager for the map.key - The key to retrieve the value for.
java.util.NoSuchElementException - if the value for the key was not found
protected int populateKeyInStatement(org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
java.lang.Object key,
int jdbcPosition)
om - Object Managerps - The PreparedStatementkey - The keyjdbcPosition - Position in JDBC statement to populate
protected int populateValueInStatement(org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
java.lang.Object value,
int jdbcPosition)
om - Object Managerps - The PreparedStatementvalue - The valuejdbcPosition - Position in JDBC statement to populate
protected int populateEmbeddedKeyFieldsInStatement(org.jpox.StateManager sm,
java.lang.Object key,
java.sql.PreparedStatement ps,
int jdbcPosition,
JoinTable joinTable)
sm - State Manager of the owning containerkey - The embedded keyps - The PreparedStatementjdbcPosition - JDBC position in the statement to start atjoinTable - The Join table where the values are embedded
protected int populateEmbeddedValueFieldsInStatement(org.jpox.StateManager sm,
java.lang.Object value,
java.sql.PreparedStatement ps,
int jdbcPosition,
JoinTable joinTable)
sm - State Manager of the owning containervalue - The embedded valueps - The PreparedStatementjdbcPosition - JDBC position in the statement to start atjoinTable - The Join table where the values are embedded
public boolean updateEmbeddedKey(org.jpox.StateManager sm,
java.lang.Object key,
int fieldNumber,
java.lang.Object newValue)
updateEmbeddedKey in interface org.jpox.store.scostore.MapStoresm - State Manager of the ownerkey - The key to updatefieldNumber - The number of the field to updatenewValue - The new value
public boolean updateEmbeddedValue(org.jpox.StateManager sm,
java.lang.Object value,
int fieldNumber,
java.lang.Object newValue)
updateEmbeddedValue in interface org.jpox.store.scostore.MapStoresm - State Manager of the ownervalue - The value to updatefieldNumber - The number of the field to updatenewValue - The new valueprotected java.lang.String getUpdateEmbeddedKeyStmt(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
UPDATE MAPTABLE SET EMBEDDEDKEYCOL1 = ? WHERE OWNERCOL=? AND EMBEDDEDKEYCOL1 = ? AND EMBEDDEDKEYCOL2 = ? ...
fieldMapping - The mapping for the field to be updated
protected java.lang.String getUpdateEmbeddedValueStmt(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
UPDATE MAPTABLE SET EMBEDDEDVALUECOL1 = ? WHERE OWNERCOL=? AND EMBEDDEDVALUECOL1 = ? AND EMBEDDEDVALUECOL2 = ? ...
fieldMapping - The mapping for the field to be updated
public org.jpox.store.query.ResultObjectFactory newResultObjectFactory(org.jpox.StateManager sm,
org.jpox.store.mapped.expression.QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
newResultObjectFactory in interface org.jpox.store.mapped.scostore.MapStoreQueryablesm - State Manager of owner fieldstmt - The Query statementignoreCache - Whether to ignore the cacheuseFetchPlan - Whether to retrieve the fetch plan fields or DFG
public org.jpox.store.mapped.expression.QueryExpression getExistsSubquery(org.jpox.store.mapped.expression.QueryExpression qs,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias)
getExistsSubquery in interface org.jpox.store.mapped.scostore.MapStoreQueryableqs - The QueryStatementmapping - The mapping of the java typeownerTe - The owner table expressionmapTableAlias - The aliasfor the "Map" table.
public org.jpox.store.mapped.expression.QueryExpression getSizeSubquery(org.jpox.store.mapped.expression.QueryExpression qs,
org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.expression.LogicSetExpression ownerTe,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias)
getSizeSubquery in interface org.jpox.store.mapped.scostore.MapStoreQueryableqs - The query statementmapping - mapping of the fieldownerTe - Expression for the tablemapTableAlias - alias for the map table
public org.jpox.store.mapped.expression.ScalarExpression[] joinKeysToGet(org.jpox.store.mapped.expression.QueryExpression stmt,
org.jpox.store.mapped.expression.QueryExpression parentStmt,
org.jpox.store.mapped.mapping.JavaTypeMapping ownerMapping,
org.jpox.store.mapped.expression.LogicSetExpression te,
org.jpox.store.mapped.DatastoreIdentifier mapTableAlias,
java.lang.Class filteredKeyType,
org.jpox.store.mapped.DatastoreIdentifier keyTableAlias,
org.jpox.store.mapped.DatastoreIdentifier valueTableAlias)
joinKeysToGet in interface org.jpox.store.mapped.scostore.MapStoreQueryablestmt - The Query Statement to apply the joinparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the owner.te - Table Expression for the ownermapTableAlias - The SQL alias to assign to the expression or to the main table.filteredKeyType - The Class Type for the filtered keykeyTableAlias - The SQL alias to assign to the expression or to the key table.valueTableAlias - The SQL alias to assign to the expression or to the value table.
protected void setOwnerMemberMetaData(org.jpox.metadata.AbstractMemberMetaData mmd)
mmd - MetaData for the field/property owning this backing store.public org.jpox.store.StoreManager getStoreManager()
public org.jpox.store.mapped.mapping.JavaTypeMapping getOwnerMapping()
protected boolean isEmbeddedMapping(org.jpox.store.mapped.mapping.JavaTypeMapping mapping)
mapping - the mapping
protected int populateOwnerInStatement(org.jpox.StateManager sm,
org.jpox.ObjectManager om,
java.sql.PreparedStatement ps,
int jdbcPosition)
sm - State Managerom - Object Managerps - The PreparedStatementjdbcPosition - Position in JDBC statement to populate
protected org.jpox.StateManager getStateManagerForEmbeddedPCObject(org.jpox.StateManager sm,
java.lang.Object obj,
JoinTable table)
sm - State Manager of the ownerobj - The embedded PC objecttable - Join table where the objects are stored
protected boolean allowsBatching()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||