Package | Description |
---|---|
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.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.sql |
Series of classes used to generate SQL statements.
|
org.datanucleus.store.rdbms.sql.expression |
Series of expressions representing conditions in 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 |
---|---|
String |
HSQLAdapter.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 |
MySQLAdapter.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 |
DatastoreAdapter.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 |
McKoiAdapter.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 |
MySQLAdapter.getCreateTableStatement(TableImpl table,
Column[] columns,
Properties props,
IdentifierFactory factory)
Method to return the CREATE TABLE statement.
|
String |
DatastoreAdapter.getCreateTableStatement(TableImpl table,
Column[] columns,
Properties props,
IdentifierFactory factory)
Returns the appropriate SQL to create the given table having the given
columns.
|
String |
SQLAnywhereAdapter.getCreateTableStatement(TableImpl table,
Column[] columns,
Properties props,
IdentifierFactory factory)
Returns the appropriate SQL to create the given table having the given columns.
|
String |
BaseDatastoreAdapter.getCreateTableStatement(TableImpl table,
Column[] columns,
Properties props,
IdentifierFactory factory)
Returns the appropriate SQL to create the given table having the given
columns.
|
Modifier and Type | Method and Description |
---|---|
Column |
DuplicateColumnException.getConflictingColumn()
Accessor for the column that could not be created because it conflicts with something already present.
|
Constructor and Description |
---|
DuplicateColumnException(String tableName,
Column col1,
Column col2)
Constructs a duplicate column name exception.
|
IncompatibleDataTypeException(Column column,
int expectedType,
int actualType)
Constructs an incompatible data type exception.
|
Modifier and Type | Method and Description |
---|---|
void |
ForeignKey.addColumn(Column col,
Column refCol)
Method to add a Column.
|
void |
Index.setColumn(int seq,
Column col)
Sets a column for in a specified position
seq |
void |
CandidateKey.setColumn(int seq,
Column col)
Mutator for the column spec, to add/change a column.
|
void |
ForeignKey.setColumn(int seq,
Column col,
Column refCol)
Set the datastore field for the specified position
seq |
Modifier and Type | Method and Description |
---|---|
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.
|
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(JavaTypeMapping mapping,
String javaType,
org.datanucleus.metadata.ColumnMetaData colmd)
Method to create a datastore field (column) in a container (table).
|
Column |
RDBMSMappingManager.createColumn(JavaTypeMapping mapping,
String javaType,
org.datanucleus.metadata.ColumnMetaData colmd)
Method to create a datastore field for a Java type mapping.
|
Column |
MappingManager.createColumn(JavaTypeMapping mapping,
String javaType,
int datastoreFieldIndex)
Method to create a datastore field (column) in a container (table).
|
Column |
RDBMSMappingManager.createColumn(JavaTypeMapping mapping,
String javaType,
int datastoreFieldIndex)
Method to create a column for a Java type mapping.
|
Modifier and Type | Method and Description |
---|---|
void |
MappingConsumer.consumeUnmappedColumn(Column col)
Consume a column without 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.
|
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.
|
DatastoreMapping |
MappingManager.createDatastoreMapping(JavaTypeMapping mapping,
org.datanucleus.metadata.AbstractMemberMetaData fmd,
int index,
Column column)
Method to create the datastore mapping for a java type mapping at a particular index.
|
DatastoreMapping |
RDBMSMappingManager.createDatastoreMapping(JavaTypeMapping mapping,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
int index,
Column column)
Method to create the datastore mapping for a java type mapping at a particular index.
|
DatastoreMapping |
MappingManager.createDatastoreMapping(JavaTypeMapping mapping,
Column column,
String javaType)
Method to create the datastore mapping for a particular column and java type.
|
DatastoreMapping |
RDBMSMappingManager.createDatastoreMapping(JavaTypeMapping mapping,
Column column,
String javaType)
Method to create the datastore mapping for a particular column and java type.
|
Modifier and Type | Field and Description |
---|---|
protected Column |
AbstractDatastoreMapping.column
The RDBMS Column being persisted to.
|
Modifier and Type | Method and Description |
---|---|
Column |
DatastoreMapping.getColumn() |
Column |
AbstractDatastoreMapping.getColumn()
Accessor for the column
|
Modifier and Type | Method and Description |
---|---|
static DatastoreMapping |
DatastoreMappingFactory.createMapping(Class mappingClass,
JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column column)
Get a new instance of the DatastoreMapping using the mapping, StoreManager and column.
|
Modifier and Type | Field and Description |
---|---|
protected Column |
SQLColumn.column
The column being referenced.
|
Modifier and Type | Method and Description |
---|---|
Column |
SQLColumn.getColumn() |
Modifier and Type | Method and Description |
---|---|
int |
SQLStatement.select(SQLTable table,
Column column,
String alias)
Add a select clause for the specified column.
|
Constructor and Description |
---|
SQLColumn(SQLTable table,
Column col,
DatastoreIdentifier alias)
Constructor for a column reference.
|
Constructor and Description |
---|
ColumnExpression(SQLStatement stmt,
SQLTable table,
Column col)
Constructor for an SQL expression for a column.
|
Modifier and Type | Field and Description |
---|---|
protected Map<DatastoreIdentifier,Column> |
AbstractTable.columnsByIdentifier
Index to the columns, keyed by name identifier.
|
Modifier and Type | Method and Description |
---|---|
Column |
AbstractTable.addColumn(String storedJavaType,
DatastoreIdentifier name,
JavaTypeMapping mapping,
org.datanucleus.metadata.ColumnMetaData colmd)
Creates a new column in the table.
|
Column |
Table.addColumn(String storedJavaType,
DatastoreIdentifier name,
JavaTypeMapping mapping,
org.datanucleus.metadata.ColumnMetaData colmd)
Method to add a new column to the internal representation.
|
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.
|
Column |
AbstractTable.getColumn(DatastoreIdentifier identifier)
Accessor for the Datastore field with the specified identifier.
|
Column |
Table.getColumn(DatastoreIdentifier identifier)
Accessor for the Datastore field with the specified identifier.
|
Column |
ColumnImpl.setColumnMetaData(org.datanucleus.metadata.ColumnMetaData colmd) |
Column |
Column.setConstraints(String constraints)
Mutator for the constraints of the column.
|
Column |
ColumnImpl.setConstraints(String constraints) |
Column |
ColumnImpl.setDefaultable(Object defaultValue) |
Column |
Column.setIdentity(boolean identity)
Mutator for whether we set this column as an identity column.
|
Column |
ColumnImpl.setIdentity(boolean identity) |
Column |
ColumnImpl.setJdbcType(org.datanucleus.metadata.JdbcType jdbcType) |
Column |
ColumnImpl.setNullable(boolean flag) |
Column |
ColumnImpl.setPosition(int pos) |
Column |
ColumnImpl.setPrimaryKey() |
Column |
Column.setTypeInfo(SQLTypeInfo typeInfo)
Mutator for the type information of the column.
|
Column |
ColumnImpl.setTypeInfo(SQLTypeInfo typeInfo) |
Column |
ColumnImpl.setTypeName(String type) |
Column |
ColumnImpl.setUnique(boolean flag) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTable.addColumnInternal(Column col)
Utility method to add a column to the internal representation
|
protected void |
ViewImpl.addColumnInternal(Column col)
Method to add a Column to the View.
|
void |
Column.copyConfigurationTo(Column col)
Copy the configuration of this field to another field
|
void |
ColumnImpl.copyConfigurationTo(Column colIn) |
Copyright © 2017. All rights reserved.