org.datanucleus.metadata
Class TableGeneratorMetaData

java.lang.Object
  extended by org.datanucleus.metadata.MetaData
      extended by org.datanucleus.metadata.TableGeneratorMetaData
All Implemented Interfaces:
java.io.Serializable

public class TableGeneratorMetaData
extends MetaData

Representation of the MetaData of a TableGenerator (JPA).

See Also:
Serialized Form

Field Summary
protected  long allocationSize
          Allocation size for ids from the table.
protected  java.lang.String catalogName
          Name of the catalog to use for the table
protected  long initialValue
          Initial value in the table.
protected  java.lang.String name
          Name under which this table generator is known.
protected  java.lang.String pkColumnName
          Name of the primary-key column name
protected  java.lang.String pkColumnValue
          Name of the primary-key column value
protected  java.lang.String schemaName
          Name of the schema to use for the table
protected  java.lang.String tableName
          Name of the table to use for sequences
protected  java.lang.String valueColumnName
          Name of the value column name
 
Fields inherited from class org.datanucleus.metadata.MetaData
extensions, LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME, VENDOR_NAME_OLD
 
Method Summary
 long getAllocationSize()
           
 java.lang.String getCatalogName()
           
 java.lang.String getFullyQualifiedName()
          Convenience accessor for the fully-qualified name of the sequence.
 long getInitialValue()
           
 java.lang.String getName()
           
 java.lang.String getPKColumnName()
           
 java.lang.String getPKColumnValue()
           
 java.lang.String getSchemaName()
           
 java.lang.String getTableName()
           
 java.lang.String getValueColumnName()
           
 TableGeneratorMetaData setAllocationSize(long allocationSize)
           
 TableGeneratorMetaData setAllocationSize(java.lang.String allocationSize)
           
 TableGeneratorMetaData setCatalogName(java.lang.String catalogName)
           
 TableGeneratorMetaData setInitialValue(long initialValue)
           
 TableGeneratorMetaData setInitialValue(java.lang.String initialValue)
           
 TableGeneratorMetaData setPKColumnName(java.lang.String pkColumnName)
           
 TableGeneratorMetaData setPKColumnValue(java.lang.String pkColumnValue)
           
 TableGeneratorMetaData setSchemaName(java.lang.String schemaName)
           
 TableGeneratorMetaData setTableName(java.lang.String tableName)
           
 TableGeneratorMetaData setValueColumnName(java.lang.String valueColumnName)
           
 java.lang.String toString(java.lang.String prefix, java.lang.String indent)
          Returns a string representation of the object.
 
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtension, assertIfInitialised, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name
Name under which this table generator is known.


tableName

protected java.lang.String tableName
Name of the table to use for sequences


catalogName

protected java.lang.String catalogName
Name of the catalog to use for the table


schemaName

protected java.lang.String schemaName
Name of the schema to use for the table


pkColumnName

protected java.lang.String pkColumnName
Name of the primary-key column name


valueColumnName

protected java.lang.String valueColumnName
Name of the value column name


pkColumnValue

protected java.lang.String pkColumnValue
Name of the primary-key column value


initialValue

protected long initialValue
Initial value in the table.


allocationSize

protected long allocationSize
Allocation size for ids from the table.

Method Detail

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Convenience accessor for the fully-qualified name of the sequence.

Returns:
Fully qualfiied name of the sequence (including the package name).

getName

public java.lang.String getName()

getTableName

public java.lang.String getTableName()

setTableName

public TableGeneratorMetaData setTableName(java.lang.String tableName)

getCatalogName

public java.lang.String getCatalogName()

setCatalogName

public TableGeneratorMetaData setCatalogName(java.lang.String catalogName)

getSchemaName

public java.lang.String getSchemaName()

setSchemaName

public TableGeneratorMetaData setSchemaName(java.lang.String schemaName)

getPKColumnName

public java.lang.String getPKColumnName()

setPKColumnName

public TableGeneratorMetaData setPKColumnName(java.lang.String pkColumnName)

getValueColumnName

public java.lang.String getValueColumnName()

setValueColumnName

public TableGeneratorMetaData setValueColumnName(java.lang.String valueColumnName)

getPKColumnValue

public java.lang.String getPKColumnValue()

setPKColumnValue

public TableGeneratorMetaData setPKColumnValue(java.lang.String pkColumnValue)

getInitialValue

public long getInitialValue()

setInitialValue

public TableGeneratorMetaData setInitialValue(long initialValue)

setInitialValue

public TableGeneratorMetaData setInitialValue(java.lang.String initialValue)

getAllocationSize

public long getAllocationSize()

setAllocationSize

public TableGeneratorMetaData setAllocationSize(long allocationSize)

setAllocationSize

public TableGeneratorMetaData setAllocationSize(java.lang.String allocationSize)

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object.

Overrides:
toString in class MetaData
Parameters:
prefix - prefix string
indent - indent string
Returns:
a string representation of the object.


Copyright © 2010. All Rights Reserved.