public interface TypeMetadata extends Metadata
Modifier and Type | Method and Description |
---|---|
boolean |
getCacheable()
Accessor for whether this is cacheable.
|
String |
getCatalog()
Accessor for the catalog (ORM) for this component.
|
ColumnMetadata[] |
getColumns()
Accessor for all column(s) defined on the join.
|
DatastoreIdentityMetadata |
getDatastoreIdentityMetadata()
Accessor for the datastore identity details.
|
boolean |
getDetachable()
Accessor for whether this is detachable.
|
Boolean |
getEmbeddedOnly()
Accessor for whether this is embedded only.
|
FetchGroupMetadata[] |
getFetchGroups()
Accessor for all FetchGroup defined on the component.
|
ForeignKeyMetadata[] |
getForeignKeys()
Accessor for all fk(s) defined on the component.
|
IdentityType |
getIdentityType()
Accessor for the identity type to use.
|
IndexMetadata[] |
getIndices()
Accessor for all index(s) defined on the component.
|
InheritanceMetadata |
getInheritanceMetadata()
Accessor for the inheritance (if any).
|
JoinMetadata[] |
getJoins()
Accessor for all joins(s) defined on the component.
|
MemberMetadata[] |
getMembers()
Accessor for all fields/properties defined on the component.
|
String |
getName()
Accessor for the name of this component (set on construction).
|
int |
getNumberOfColumns()
Accessor for the number of columns defined for this join.
|
int |
getNumberOfFetchGroups()
Accessor for the number of fetchGroups defined for this component.
|
int |
getNumberOfForeignKeys()
Accessor for the number of FKs defined for this component.
|
int |
getNumberOfIndices()
Accessor for the number of indices defined for this component.
|
int |
getNumberOfJoins()
Accessor for the number of join(s) defined for this component.
|
int |
getNumberOfMembers()
Accessor for the number of fields/properties defined for this component.
|
int |
getNumberOfQueries()
Accessor for the number of named queries defined for this component.
|
int |
getNumberOfUniques()
Accessor for the number of unique constraints defined for this component.
|
String |
getObjectIdClass()
Accessor for the object-id class (if defined).
|
PrimaryKeyMetadata |
getPrimaryKeyMetadata()
Accessor for the primary key (if any).
|
QueryMetadata[] |
getQueries()
Accessor for all named queries defined on the component.
|
boolean |
getRequiresExtent()
Accessor for whether the component requires an extent.
|
String |
getSchema()
Accessor for the schema (ORM) for this component.
|
boolean |
getSerializeRead()
Accessor for the value of serializeRead for objects of this type.
|
String |
getTable()
Accessor for the name of the table.
|
UniqueMetadata[] |
getUniques()
Accessor for all unique constraints defined on the component.
|
VersionMetadata |
getVersionMetadata()
Accessor for the version (if any).
|
ColumnMetadata |
newColumnMetadata()
Add a new column for this join.
|
DatastoreIdentityMetadata |
newDatastoreIdentityMetadata()
Method to define the datastore identity metadata details.
|
FetchGroupMetadata |
newFetchGroupMetadata(String name)
Add a new FetchGroup for this component.
|
ForeignKeyMetadata |
newForeignKeyMetadata()
Add a new FK for this component.
|
IndexMetadata |
newIndexMetadata()
Add a new index for this component.
|
InheritanceMetadata |
newInheritanceMetadata()
Method to define the inheritance metadata.
|
JoinMetadata |
newJoinMetadata()
Add a join for this component.
|
PrimaryKeyMetadata |
newPrimaryKeyMetadata()
Method to define the primary key details.
|
PropertyMetadata |
newPropertyMetadata(Method method)
Add a new property for this component.
|
PropertyMetadata |
newPropertyMetadata(String name)
Add a new property for this component.
|
QueryMetadata |
newQueryMetadata(String name)
Add a new query for this component.
|
UniqueMetadata |
newUniqueMetadata()
Add a new unique constraint for this component.
|
VersionMetadata |
newVersionMetadata()
Method to define the version metadata.
|
TypeMetadata |
setCacheable(boolean cacheable)
Method to set whether this is cacheable.
|
TypeMetadata |
setCatalog(String catalog)
Method to set the catalog (ORM) for this component.
|
TypeMetadata |
setDetachable(boolean detachable)
Method to set whether this is detachable.
|
TypeMetadata |
setEmbeddedOnly(boolean embedded)
Method to set whether it is stored only as embedded in other objects.
|
TypeMetadata |
setIdentityType(IdentityType id)
Method to define the identity type to use.
|
TypeMetadata |
setObjectIdClass(String idclass)
Method to set the object-id (PK) class.
|
TypeMetadata |
setRequiresExtent(boolean extent)
Method to set whether the component requires an extent.
|
TypeMetadata |
setSchema(String schema)
Method to set the schema (ORM) for this component.
|
TypeMetadata |
setSerializeRead(boolean flag)
Method to set the default value of serializeRead for objects of this type.
|
TypeMetadata |
setTable(String table)
Method to set the table name.
|
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
String getName()
TypeMetadata setIdentityType(IdentityType id)
id
- identity typeIdentityType getIdentityType()
TypeMetadata setObjectIdClass(String idclass)
idclass
- Object-id classString getObjectIdClass()
TypeMetadata setRequiresExtent(boolean extent)
extent
- Requires extent?boolean getRequiresExtent()
TypeMetadata setDetachable(boolean detachable)
detachable
- Detachable?boolean getDetachable()
TypeMetadata setCacheable(boolean cacheable)
cacheable
- Cacheable?boolean getCacheable()
TypeMetadata setSerializeRead(boolean flag)
flag
- serializeReadboolean getSerializeRead()
TypeMetadata setEmbeddedOnly(boolean embedded)
embedded
- Whether it is only stored embeddedBoolean getEmbeddedOnly()
TypeMetadata setCatalog(String catalog)
catalog
- Catalog nameString getCatalog()
TypeMetadata setSchema(String schema)
schema
- Schema nameString getSchema()
TypeMetadata setTable(String table)
table
- Table nameString getTable()
InheritanceMetadata newInheritanceMetadata()
InheritanceMetadata getInheritanceMetadata()
VersionMetadata newVersionMetadata()
VersionMetadata getVersionMetadata()
DatastoreIdentityMetadata newDatastoreIdentityMetadata()
DatastoreIdentityMetadata getDatastoreIdentityMetadata()
PrimaryKeyMetadata newPrimaryKeyMetadata()
PrimaryKeyMetadata getPrimaryKeyMetadata()
JoinMetadata[] getJoins()
JoinMetadata newJoinMetadata()
int getNumberOfJoins()
ForeignKeyMetadata[] getForeignKeys()
ForeignKeyMetadata newForeignKeyMetadata()
int getNumberOfForeignKeys()
IndexMetadata[] getIndices()
IndexMetadata newIndexMetadata()
int getNumberOfIndices()
UniqueMetadata[] getUniques()
UniqueMetadata newUniqueMetadata()
int getNumberOfUniques()
MemberMetadata[] getMembers()
int getNumberOfMembers()
PropertyMetadata newPropertyMetadata(String name)
name
- Name of the propertyPropertyMetadata newPropertyMetadata(Method method)
method
- Java bean getter/setter methodQueryMetadata[] getQueries()
QueryMetadata newQueryMetadata(String name)
name
- Name of the query to addint getNumberOfQueries()
FetchGroupMetadata[] getFetchGroups()
FetchGroupMetadata newFetchGroupMetadata(String name)
name
- Name of the FetchGroupint getNumberOfFetchGroups()
ColumnMetadata[] getColumns()
ColumnMetadata newColumnMetadata()
int getNumberOfColumns()
Copyright © 2005–1970 Apache Software Foundation. All rights reserved.