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 MetaDataManager |
metaDataManager
Manager for this MetaData object.
|
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_VERSION_FIELD_NAME, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, 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_LIST_ORDERING, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
FileMetaData()
Constructor.
|
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 |
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) |
void |
setMetaDataManager(MetaDataManager mmgr)
Method to set the MetaDataManager in use.
|
FileMetaData |
setSchema(String schema) |
FileMetaData |
setType(MetadataFileType type) |
String |
toString(String prefix,
String indent)
Returns a string representation of the object.
|
addExtension, addExtension, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString
protected transient MetaDataManager metaDataManager
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 void setMetaDataManager(MetaDataManager mmgr)
mmgr
- MetaDataManager to usepublic 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 getListeners()
public void addQueryResultMetaData(QueryResultMetaData resultMetaData)
resultMetaData
- Query-Result MetaData to registerpublic QueryResultMetaData newQueryResultMetadata(String name)
name
- Name of the resultpublic QueryResultMetaData[] getQueryResultMetaData()
Copyright © 2017. All rights reserved.