public class FileMetaData extends MetaData
Modifier and Type | Field and Description |
---|---|
protected String |
catalog
Catalog name for all classes in this file
|
protected Collection<FetchPlanMetaData> |
fetchPlans
Named FetchPlans in this file.
|
protected String |
filename
Name of file
|
protected List<EventListenerMetaData> |
listeners
List of event listeners defined for this file.
|
protected List<PackageMetaData> |
packages
List of packages in this file (uses List to retain file positioning)
|
protected Collection<QueryMetaData> |
queries
Named queries defined in this file.
|
protected Collection<QueryResultMetaData> |
queryResultMetaData
List of query result MetaData defined for this file.
|
protected String |
schema
Schema name for all classes in this file
|
protected Collection<StoredProcQueryMetaData> |
storedProcs
Named stored procedures defined in this file.
|
protected MetadataFileType |
type
Type of file (JDO, ORM, JDOQUERY, etc)
|
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
FileMetaData() |
FileMetaData(String filename) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventListenerMetaData listener)
Add a listener class name
|
void |
addQueryResultMetaData(QueryResultMetaData resultMetaData)
Method to register a query-result MetaData.
|
String |
getCatalog() |
ClassMetaData |
getClass(String pkg_name,
String class_name)
Utility method to check if the MetaData for a class is contained in this file.
|
FetchPlanMetaData[] |
getFetchPlans()
Accessor for the metadata of the named fetch plans.
|
String |
getFilename() |
List<EventListenerMetaData> |
getListeners()
Get the event listeners registered against the file.
|
int |
getNoOfFetchPlans()
Accessor for the number of named fetch plans.
|
int |
getNoOfPackages()
Accessor for the number of packages.
|
int |
getNoOfQueries()
Accessor for the number of named queries.
|
int |
getNoOfStoredProcQueries()
Accessor for the number of named queries.
|
PackageMetaData |
getPackage(int i)
Accessor for the meta-data of a package.
|
PackageMetaData |
getPackage(String name)
Accessor for the Meta-Data of a package with a given name.
|
QueryMetaData[] |
getQueries()
Accessor for the metadata of the named queries.
|
QueryResultMetaData[] |
getQueryResultMetaData()
Get the query result MetaData.
|
String |
getSchema() |
StoredProcQueryMetaData[] |
getStoredProcQueries()
Accessor for the metadata of the named stored procedure queries.
|
MetadataFileType |
getType() |
FetchPlanMetaData |
newFetchPlanMetadata(String name) |
PackageMetaData |
newPackageMetadata(String name)
Method to create and return a package metadata for the specified package name.
|
QueryMetaData |
newQueryMetadata(String queryName)
Method to create a new QueryMetadata, add it to the registered queries and return it.
|
QueryResultMetaData |
newQueryResultMetadata(String name)
Method to create a new query result metadata, add it, and return it.
|
StoredProcQueryMetaData |
newStoredProcQueryMetaData(String queryName)
Method to create a new StoredProcQueryMetadata, add it to the registered queries and return it.
|
FileMetaData |
setCatalog(String catalog) |
FileMetaData |
setFilename(String filename) |
FileMetaData |
setSchema(String schema) |
FileMetaData |
setType(MetadataFileType type) |
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected MetadataFileType type
protected String filename
protected String catalog
protected String schema
protected Collection<QueryMetaData> queries
protected Collection<StoredProcQueryMetaData> storedProcs
protected Collection<QueryResultMetaData> queryResultMetaData
protected Collection<FetchPlanMetaData> fetchPlans
protected List<PackageMetaData> packages
protected List<EventListenerMetaData> listeners
public FileMetaData()
public FileMetaData(String filename)
public String getFilename()
public FileMetaData setFilename(String filename)
public String getCatalog()
public FileMetaData setCatalog(String catalog)
public String getSchema()
public FileMetaData setSchema(String schema)
public MetadataFileType getType()
public FileMetaData setType(MetadataFileType type)
public int getNoOfQueries()
public QueryMetaData[] getQueries()
public int getNoOfStoredProcQueries()
public StoredProcQueryMetaData[] getStoredProcQueries()
public int getNoOfFetchPlans()
public FetchPlanMetaData[] getFetchPlans()
public int getNoOfPackages()
public PackageMetaData getPackage(int i)
i
- index numberpublic PackageMetaData getPackage(String name)
name
- Name of the packagepublic ClassMetaData getClass(String pkg_name, String class_name)
pkg_name
- Name of packageclass_name
- Name of classpublic QueryMetaData newQueryMetadata(String queryName)
queryName
- Name of the querypublic StoredProcQueryMetaData newStoredProcQueryMetaData(String queryName)
queryName
- Name of the querypublic FetchPlanMetaData newFetchPlanMetadata(String name)
public PackageMetaData newPackageMetadata(String name)
name
- Name of the packagepublic void addListener(EventListenerMetaData listener)
listener
- the listener metadata. Duplicated classes are ignoredpublic List<EventListenerMetaData> getListeners()
public void addQueryResultMetaData(QueryResultMetaData resultMetaData)
resultMetaData
- Query-Result MetaData to registerpublic QueryResultMetaData newQueryResultMetadata(String name)
name
- Name of the resultpublic QueryResultMetaData[] getQueryResultMetaData()
Copyright © 2019. All rights reserved.