Package | Description |
---|---|
org.datanucleus.store.rdbms |
Package providing management of the persistence to RDBMS datastores.
|
org.datanucleus.store.rdbms.adapter |
Provides mappings of all supported databases to aspects of the database that determines the SQL generation.
|
org.datanucleus.store.rdbms.exceptions | |
org.datanucleus.store.rdbms.identifier |
This package contains a series of classes defining the identifier names of datastore objects,
such as tables, foreign keys, indexes, primary keys etc.
|
org.datanucleus.store.rdbms.key |
This package contains wrappers to various types of keys found in RDBMS databases.
|
org.datanucleus.store.rdbms.mapping |
In an RDBMS datastore each class is represented as a Table (maybe shared with other classes).
|
org.datanucleus.store.rdbms.mapping.datastore |
Package containing mappings for datastore (JDBC) types.
|
org.datanucleus.store.rdbms.mapping.java |
Package providing mappings for all supported Java types in DataNucleus.
|
org.datanucleus.store.rdbms.schema |
Provides a definition of the schema in the datastore, including tables, columns and types.
|
org.datanucleus.store.rdbms.scostore |
This package provides classes defining the (SCO) backing store for various container classes (Collections/Maps/arrays) within DataNucleus.
|
org.datanucleus.store.rdbms.sql |
Series of classes used to generate SQL statements.
|
org.datanucleus.store.rdbms.table |
Provides the internal DataNucleus definition of a table/view and its columns.
|
Modifier and Type | Method and Description |
---|---|
Table |
RDBMSStoreManager.getTable(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Returns the datastore container (table) for the specified field.
|
Table |
RDBMSStoreManager.newJoinTable(org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr)
Called by (container) Mapping objects to request the creation of a join table.
|
Modifier and Type | Method and Description |
---|---|
Collection<Table> |
RDBMSStoreManager.getManagedTables(String catalog,
String schema)
Convenience accessor of the Table objects managed in this datastore at this point.
|
Modifier and Type | Method and Description |
---|---|
RDBMSColumnInfo |
RDBMSStoreManager.getColumnInfoForColumnName(Table table,
Connection conn,
DatastoreIdentifier column)
Returns the column info for a column name.
|
List |
RDBMSStoreManager.getColumnInfoForTable(Table table,
Connection conn)
Returns the column info for a database table.
|
void |
RDBMSStoreManager.invalidateColumnInfoForTable(Table table)
Method to invalidate the cached column info for a table.
|
void |
RDBMSStoreManager.registerTableInitialized(Table table) |
Constructor and Description |
---|
RDBMSStoreData(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table)
Constructor, taking the meta data for the field, and the table it is mapped to.
|
RDBMSStoreData(org.datanucleus.metadata.ClassMetaData cmd,
Table table,
boolean tableOwner)
Constructor for FCO data.
|
Modifier and Type | Method and Description |
---|---|
String |
HSQLAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
PostgreSQLAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
MySQLAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
TimesTenAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
DatastoreAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
McKoiAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
H2Adapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
BaseDatastoreAdapter.getAddColumnStatement(Table table,
Column col)
Accessor for the SQL statement to add a column to a table.
|
String |
HSQLAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
PostgreSQLAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the autoincrement sql access statement for this datastore.
|
String |
MySQLAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
DatastoreAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment/identity sql statement for this datastore.
|
String |
DB2Adapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
SQLiteAdapter.getAutoIncrementStmt(Table table,
String columnName) |
String |
InformixAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the autoincrement sql access statement for this datastore.
|
String |
VirtuosoAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
SybaseAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
H2Adapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
BaseDatastoreAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the autoincrementing sql statement for this datastore.
|
String |
DerbyAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment SQL statement for this datastore.
|
String |
MSSQLServerAdapter.getAutoIncrementStmt(Table table,
String columnName)
Accessor for the auto-increment sql statement for this datastore.
|
String |
HSQLAdapter.getDropTableStatement(Table table)
Returns the appropriate SQL to drop the given table.
|
String |
PostgreSQLAdapter.getDropTableStatement(Table table)
Accessor for the statement for dropping a table.
|
String |
OracleAdapter.getDropTableStatement(Table table)
Method to return the drop table statement for Oracle.
|
String |
MySQLAdapter.getDropTableStatement(Table table)
Method to return the DROP TABLE statement.
|
String |
DatastoreAdapter.getDropTableStatement(Table table)
Returns the appropriate SQL to drop the given table.
|
String |
DB2Adapter.getDropTableStatement(Table table) |
String |
SQLiteAdapter.getDropTableStatement(Table table) |
String |
FirebirdAdapter.getDropTableStatement(Table table) |
String |
McKoiAdapter.getDropTableStatement(Table table)
Returns the appropriate SQL to drop the given table.
|
String |
VirtuosoAdapter.getDropTableStatement(Table table)
Method to return the DROP TABLE statement.
|
String |
SybaseAdapter.getDropTableStatement(Table table)
Accessor for the DROP TABLE statement for Sybase.
|
String |
H2Adapter.getDropTableStatement(Table table)
Returns the appropriate SQL to drop the given table.
|
String |
BaseDatastoreAdapter.getDropTableStatement(Table table)
Returns the appropriate SQL to drop the given table.
|
String |
DerbyAdapter.getDropTableStatement(Table table) |
String |
MSSQLServerAdapter.getDropTableStatement(Table table) |
String |
HSQLAdapter.getInsertStatementForNoColumns(Table table)
Method to retutn the INSERT statement to use when inserting into a table that has no
columns specified.
|
String |
PostgreSQLAdapter.getInsertStatementForNoColumns(Table table)
Method to return the INSERT statement to use when inserting into a table and we dont want to
specify columns.
|
String |
DatastoreAdapter.getInsertStatementForNoColumns(Table table)
Method to retutn the INSERT statement to use when inserting into a table that has no
columns specified.
|
String |
H2Adapter.getInsertStatementForNoColumns(Table table)
Method to retutn the INSERT statement to use when inserting into a table that has no
columns specified.
|
String |
BaseDatastoreAdapter.getInsertStatementForNoColumns(Table table)
Method to return the INSERT statement to use when inserting into a table that has no
columns specified.
|
String |
DerbyAdapter.getInsertStatementForNoColumns(Table table)
Method to return the INSERT statement to use when inserting into a table that has no
columns specified.
|
String |
MSSQLServerAdapter.getInsertStatementForNoColumns(Table table)
Method to return the INSERT statement to use when inserting into a table that has no
columns specified.
|
Constructor and Description |
---|
MissingColumnException(Table table,
Collection columns)
Constructs a missing column exception.
|
Modifier and Type | Method and Description |
---|---|
DatastoreIdentifier |
AbstractIdentifierFactory.newCandidateKeyIdentifier(Table table,
int seq)
Method to generate an identifier for a candidate key in the supplied table.
|
DatastoreIdentifier |
IdentifierFactory.newCandidateKeyIdentifier(Table table,
int seq)
Method to generate an identifier for a candidate key.
|
DatastoreIdentifier |
AbstractIdentifierFactory.newForeignKeyIdentifier(Table table,
int seq)
Method to create a new identifier for a foreign key in the supplied table.
|
DatastoreIdentifier |
IdentifierFactory.newForeignKeyIdentifier(Table table,
int seq)
Method to create an identifier for a foreign key.
|
DatastoreIdentifier |
AbstractIdentifierFactory.newIndexIdentifier(Table table,
boolean isUnique,
int seq)
Method to create an identifier for an Index in the supplied table.
|
DatastoreIdentifier |
IdentifierFactory.newIndexIdentifier(Table table,
boolean isUnique,
int seq)
Method to generate an identifier for an index.
|
DatastoreIdentifier |
AbstractIdentifierFactory.newPrimaryKeyIdentifier(Table table)
Method to generate an identifier for a primary key for the supplied table.
|
DatastoreIdentifier |
IdentifierFactory.newPrimaryKeyIdentifier(Table table)
Method to generate an identifier for a primary key.
|
Constructor and Description |
---|
CandidateKey(Table table)
Constructor.
|
Index(Table table,
boolean isUnique,
String extendedIndexSettings)
Constructor.
|
PrimaryKey(Table table)
Creates a primary key.
|
Modifier and Type | Method and Description |
---|---|
Column |
RDBMSMappingManager.createColumn(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
JavaTypeMapping mapping,
org.datanucleus.metadata.ColumnMetaData colmd,
Column reference,
org.datanucleus.ClassLoaderResolver clr)
Method to create a datastore field for a persistable mapping.
|
Column |
MappingManager.createColumn(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
JavaTypeMapping mapping,
org.datanucleus.metadata.ColumnMetaData colmd,
Column referenceCol,
org.datanucleus.ClassLoaderResolver clr)
Method to create a column for a persistable mapping.
|
protected JavaTypeMapping |
RDBMSMappingManager.getElementMapping(Table table,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.metadata.FieldRole fieldRole,
org.datanucleus.ClassLoaderResolver clr)
Convenience accessor for the element mapping for the element of a collection/array of elements.
|
protected JavaTypeMapping |
RDBMSMappingManager.getKeyMapping(Table table,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr)
Convenience accessor for the mapping of the key of a map.
|
JavaTypeMapping |
RDBMSMappingManager.getMapping(Table table,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.metadata.FieldRole fieldRole)
Accessor for the mapping for the member of the specified table.
|
JavaTypeMapping |
MappingManager.getMapping(Table table,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.metadata.FieldRole fieldRole)
Accessor for the mapping for the field of the specified table.
|
protected JavaTypeMapping |
RDBMSMappingManager.getValueMapping(Table table,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.ClassLoaderResolver clr)
Convenience accessor for the mapping of the value for a map.
|
Modifier and Type | Method and Description |
---|---|
static void |
OracleBlobRDBMSMapping.updateBlobColumn(org.datanucleus.state.ObjectProvider sm,
Table table,
DatastoreMapping mapping,
byte[] bytes)
Convenience method to update the contents of a BLOB column.
|
static void |
OracleClobRDBMSMapping.updateClobColumn(org.datanucleus.state.ObjectProvider op,
Table table,
DatastoreMapping mapping,
String value)
Convenience method to update the contents of a CLOB column.
|
Modifier and Type | Field and Description |
---|---|
protected Table |
JavaTypeMapping.table
The Table storing this mapping.
|
Modifier and Type | Method and Description |
---|---|
Table |
JavaTypeMapping.getTable()
Accessor for the table.
|
Table |
AbstractContainerMapping.getTable()
Accessor for the datastore class.
|
Modifier and Type | Method and Description |
---|---|
static DiscriminatorMapping |
DiscriminatorMapping.createDiscriminatorMapping(Table table,
org.datanucleus.metadata.DiscriminatorMetaData dismd)
Convenience method to create a discriminator mapping in the specified table, using the provided
discriminator metadata.
|
void |
JavaTypeMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping for the supplied table and field/property metadata.
|
void |
PersistableMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given metadata.
|
void |
SingleFieldMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData.
|
void |
EmbeddedMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData.
|
void |
AbstractContainerMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping for the given field/property.
|
void |
EmbeddedElementPCMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for
the given FieldMetaData.
|
void |
SubclassPCMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for
the given FieldMetaData.
|
void |
EnumMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given member MetaData.
|
void |
EmbeddedPCMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given metadata.
|
void |
UUIDMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
InterfaceMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialisation.
|
void |
GregorianCalendarMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
SerialisedLocalFileMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
ReferenceMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping for the specified field/property.
|
void |
TypeConverterMultiMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
TypeConverterMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
EmbeddedValuePCMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given metadata.
|
void |
ClassMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr) |
void |
EmbeddedKeyPCMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData fmd,
Table table,
org.datanucleus.ClassLoaderResolver clr)
Initialize this JavaTypeMapping with the given DatastoreAdapter for the given metadata.
|
void |
EmbeddedMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.metadata.EmbeddedMetaData emd,
String typeName,
int objectType)
Initialize for the specified member.
|
void |
TypeConverterMultiMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.store.types.converters.TypeConverter conv) |
void |
TypeConverterMapping.initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd,
Table table,
org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.store.types.converters.TypeConverter conv) |
void |
JavaTypeMapping.setTable(Table table) |
Constructor and Description |
---|
DiscriminatorLongMapping(Table table,
JavaTypeMapping delegate,
org.datanucleus.metadata.DiscriminatorMetaData dismd)
Constructor.
|
DiscriminatorMapping(Table table,
JavaTypeMapping delegate,
org.datanucleus.metadata.DiscriminatorMetaData dismd)
Constructor.
|
DiscriminatorStringMapping(Table table,
JavaTypeMapping delegate,
org.datanucleus.metadata.DiscriminatorMetaData dismd)
Constructor.
|
VersionLongMapping(Table datastoreContainer,
JavaTypeMapping delegate) |
VersionMapping(Table table,
JavaTypeMapping delegate)
Constructor.
|
VersionTimestampMapping(Table table,
JavaTypeMapping delegate) |
Modifier and Type | Method and Description |
---|---|
protected RDBMSColumnInfo |
RDBMSSchemaHandler.getRDBMSColumnInfoForColumn(Connection conn,
Table table,
String columnName)
Convenience method to get the column info from the datastore for the column in the specified table.
|
protected RDBMSTableFKInfo |
RDBMSSchemaHandler.getRDBMSTableFKInfoForTable(Connection conn,
Table table)
Convenience method to get the ForeignKey info for the specified table from the datastore.
|
protected RDBMSTableIndexInfo |
RDBMSSchemaHandler.getRDBMSTableIndexInfoForTable(Connection conn,
Table table)
Convenience method to get the index info for the specified table from the datastore.
|
protected RDBMSTableInfo |
RDBMSSchemaHandler.getRDBMSTableInfoForTable(Connection conn,
Table table)
Convenience method to get the column info for the specified table from the datastore.
|
protected RDBMSTablePKInfo |
RDBMSSchemaHandler.getRDBMSTablePKInfoForTable(Connection conn,
Table table)
Convenience method to get the PrimaryKey info for the specified table from the datastore.
|
String |
RDBMSSchemaHandler.getTableType(Connection conn,
Table table)
Returns the type of a database table/view in the datastore.
|
Modifier and Type | Field and Description |
---|---|
protected Table |
ElementContainerStore.containerTable
Table containing the link between owner and element.
|
protected Table |
AbstractMapStore.mapTable
Table storing the map relation.
|
Modifier and Type | Method and Description |
---|---|
Table |
ElementContainerStore.getContainerTable() |
Table |
AbstractMapStore.getMapTable() |
Modifier and Type | Method and Description |
---|---|
protected org.datanucleus.metadata.AbstractMemberMetaData |
ArrayStoreIterator.getOwnerFieldMetaData(Table containerTable) |
protected org.datanucleus.metadata.AbstractMemberMetaData |
ListStoreIterator.getOwnerMemberMetaData(Table containerTable) |
protected String |
AbstractMapStore.getUpdateEmbeddedKeyStmt(JavaTypeMapping fieldMapping,
JavaTypeMapping ownerMapping,
JavaTypeMapping keyMapping,
Table mapTable)
Generate statement for update the field of an embedded key.
|
protected String |
AbstractMapStore.getUpdateEmbeddedValueStmt(JavaTypeMapping fieldMapping,
JavaTypeMapping ownerMapping,
JavaTypeMapping valueMapping,
Table mapTable)
Generate statement for update the field of an embedded value.
|
Modifier and Type | Field and Description |
---|---|
protected Table |
SQLTable.table |
Modifier and Type | Method and Description |
---|---|
Table |
SQLTable.getTable() |
Modifier and Type | Method and Description |
---|---|
static SQLTable |
SQLStatementHelper.addJoinForOneToOneRelation(SQLStatement stmt,
JavaTypeMapping sourceMapping,
SQLTable sourceSqlTbl,
JavaTypeMapping targetMapping,
Table targetTable,
String targetAlias,
Object[] discrimValues,
String targetTablegroupName,
SQLJoin.JoinType joinType)
Convenience method to add a join across a 1-1 relation to the provided SQLStatement.
|
SQLTable |
SQLStatement.crossJoin(Table target,
String targetAlias,
String tableGrpName)
Method to form a right outer join to the specified table using the provided mappings.
|
protected String |
SQLStatement.generateTableAlias(Table tbl,
String groupName)
Method to generate the alias to be used for a joined table.
|
String |
SQLTableAlphaNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName) |
String |
SQLTableTNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName) |
String |
SQLTableNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName)
Method to return the alias to use for the specified table.
|
SQLTable |
SQLStatement.getTable(Table table,
String groupName)
Accessor for the SQLTable object for the specified table (if defined for this statement)
in the specified table group.
|
SQLTable |
SQLStatement.getTableForDatastoreContainer(Table table)
Convenience method to find a registered SQLTable that is for the specified table
|
SQLTable |
SQLStatement.innerJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
JavaTypeMapping sourceParentMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
JavaTypeMapping targetParentMapping,
Object[] discrimValues,
String tableGrpName)
Method to form an inner join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.innerJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName)
Method to form an inner join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.leftOuterJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
JavaTypeMapping sourceParentMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
JavaTypeMapping targetParentMapping,
Object[] discrimValues,
String tableGrpName)
Method to form a left outer join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.leftOuterJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName)
Method to form a left outer join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.rightOuterJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
JavaTypeMapping sourceParentMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
JavaTypeMapping targetParentMapping,
Object[] discrimValues,
String tableGrpName)
Method to form a right outer join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.rightOuterJoin(SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName)
Method to form a right outer join to the specified table using the provided mappings.
|
Constructor and Description |
---|
AbstractStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class candidateType,
boolean subclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName,
Table joinTable,
DatastoreIdentifier joinTableAlias,
JavaTypeMapping joinElementMapping)
Constructor for the case where we select the join table and join to the candidate table.
|
DiscriminatorStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class[] candidateTypes,
boolean includeSubclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName,
Table joinTable,
DatastoreIdentifier joinTableAlias,
JavaTypeMapping joinElementMapping)
Constructor, using the joinTable as the primary table of the SQL SELECT and joining to the
table of the candidate(s).
|
DiscriminatorStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class candidateType,
boolean includeSubclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName,
Table joinTable,
DatastoreIdentifier joinTableAlias,
JavaTypeMapping joinElementMapping)
Constructor, using the joinTable as the primary table of the SQL SELECT and joining to the
table of the candidate.
|
SQLStatement(RDBMSStoreManager rdbmsMgr,
Table table,
DatastoreIdentifier alias,
String tableGroupName)
Constructor for an SQL statement.
|
SQLStatement(SQLStatement parentStmt,
RDBMSStoreManager rdbmsMgr,
Table table,
DatastoreIdentifier alias,
String tableGroupName)
Constructor for an SQL statement that is a subquery of another statement.
|
UnionStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class candidateType,
boolean includeSubclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName,
Table joinTable,
DatastoreIdentifier joinTableAlias,
JavaTypeMapping joinElementMapping)
Constructor using a join table as the primary table.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DatastoreClass
Representation of a Java class in a datastore.
|
interface |
DatastoreElementContainer
Class representing a container of elements (collection/array) mapped in a datastore (join table).
|
interface |
DatastoreMap
Class representing a map mapped in a datastore (join table).
|
interface |
SecondaryDatastoreClass
Secondary datastore class, managing the mapping of some of the fields of the class
and dependent on a DatastoreClass.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayTable
Representation of a join table for an array.
|
class |
ClassTable
Table representing a Java class (or classes) as a first class object (FCO).
|
class |
ClassView
Representation of an SQL View for a Class.
|
class |
CollectionTable
Representation of a join table for a Collection.
|
class |
MapTable
Representation of a join table for a Map.
|
class |
SecondaryTable
Representation of a secondary table for a class.
|
Modifier and Type | Field and Description |
---|---|
protected Table |
ColumnImpl.table
Table containing this column in the datastore.
|
Modifier and Type | Method and Description |
---|---|
Table |
AbstractClassTable.getPrimaryTable()
Convenience method to return the primary table.
|
Table |
Column.getTable()
Accessor for the table for this column
|
Table |
ColumnImpl.getTable() |
Modifier and Type | Method and Description |
---|---|
static JavaTypeMapping |
ColumnCreator.createColumnsForField(Class javaType,
JavaTypeMapping mapping,
Table table,
RDBMSStoreManager storeMgr,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
boolean isPrimaryKey,
boolean isNullable,
boolean serialised,
boolean embedded,
org.datanucleus.metadata.FieldRole fieldRole,
org.datanucleus.metadata.ColumnMetaData[] columnMetaData,
org.datanucleus.ClassLoaderResolver clr,
boolean isReferenceField)
Method to create the column(s) for a field in either a join table or for a reference field.
|
static JavaTypeMapping |
ColumnCreator.createColumnsForJoinTables(Class javaType,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.metadata.ColumnMetaData[] columnMetaData,
RDBMSStoreManager storeMgr,
Table table,
boolean primaryKey,
boolean nullable,
org.datanucleus.metadata.FieldRole fieldRole,
org.datanucleus.ClassLoaderResolver clr)
Method to create the mapping for a join table for collection element, array element, map key,
map value.
|
static Column |
ColumnCreator.createIndexColumn(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Table table,
org.datanucleus.metadata.ColumnMetaData colmd,
boolean pk)
Convenience method to add the column for an index mapping.
|
static CandidateKey |
TableUtils.getCandidateKeyForField(Table table,
org.datanucleus.metadata.UniqueMetaData umd,
JavaTypeMapping fieldMapping)
Convenience method to return the candidate key (if any) for a field.
|
static Index |
TableUtils.getIndexForField(Table table,
org.datanucleus.metadata.IndexMetaData imd,
JavaTypeMapping fieldMapping)
Convenience method to create an Index for a field.
|
Constructor and Description |
---|
ColumnImpl(Table table,
String javaType,
DatastoreIdentifier identifier,
org.datanucleus.metadata.ColumnMetaData colmd)
Constructor.
|
Copyright © 2015. All rights reserved.