Class FileInfoDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueTupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueSQLObjectDescriptor
org.apache.derby.iapi.sql.dictionary.FileInfoDescriptor
- All Implemented Interfaces:
Dependable, Provider
A Descriptor for a file that has been stored in the database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final UUIDexternal interface to this class: public long getGenerationId();static final intA type tho indicate the file is a jar fileprivate final SchemaDescriptorprivate final StringFields inherited from interface Dependable
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW -
Constructor Summary
ConstructorsConstructorDescriptionFileInfoDescriptor(DataDictionary dataDictionary, UUID id, SchemaDescriptor sd, String sqlName, long generationId) Constructor for a FileInfoDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the unique class id for the Dependable.Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.Each descriptor must identify itself with its type; i.e index, check constraint whatever.longGets the generationId for the current version of this file.getName()Get the name of this object.Get the UUID of this Dependable OBJECT.Get the name of this Dependable OBJECT.Get the objects schema descriptorgetUUID()Return the UUID for this DescriptorMethods inherited from class TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionaryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Dependable
isPersistent
-
Field Details
-
JAR_FILE_TYPE
public static final int JAR_FILE_TYPEA type tho indicate the file is a jar file- See Also:
-
id
external interface to this class:- public long getGenerationId();
-
sd
-
sqlName
-
generationId
private final long generationId
-
-
Constructor Details
-
FileInfoDescriptor
public FileInfoDescriptor(DataDictionary dataDictionary, UUID id, SchemaDescriptor sd, String sqlName, long generationId) Constructor for a FileInfoDescriptor.- Parameters:
dataDictionary- The data dictionary that this descriptor lives inid- The id for this filesd- The schema for this file.sqlName- The SQL name of this file.generationId- The generation id for the version of the file this describes.
-
-
Method Details
-
getSchemaDescriptor
Description copied from class:UniqueSQLObjectDescriptorGet the objects schema descriptor- Specified by:
getSchemaDescriptorin classUniqueSQLObjectDescriptor- Returns:
- the schema descriptor
-
getName
Description copied from class:UniqueSQLObjectDescriptorGet the name of this object. E.g. for a table descriptor, this will be the table name.- Specified by:
getNamein classUniqueSQLObjectDescriptor- Returns:
- the name
-
getUUID
Description copied from class:UniqueTupleDescriptorReturn the UUID for this Descriptor- Specified by:
getUUIDin classUniqueTupleDescriptor- Returns:
- the uuid
- See Also:
-
getGenerationId
public long getGenerationId()Gets the generationId for the current version of this file. The triple (schemaName,SQLName,generationId) are unique for the life of this database.- Returns:
- the generationId for this file
-
getDependableFinder
Description copied from interface:DependableGet an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.- Specified by:
getDependableFinderin interfaceDependable- Returns:
- A Finder object that can be written to disk if this is a Persistent Dependable. Null if this is not a persistent dependable.
- See Also:
-
getObjectName
Description copied from interface:DependableGet the name of this Dependable OBJECT. This is useful for diagnostic messages.- Specified by:
getObjectNamein interfaceDependable- Returns:
- Name of Dependable OBJECT.
- See Also:
-
getObjectID
Description copied from interface:DependableGet the UUID of this Dependable OBJECT.- Specified by:
getObjectIDin interfaceDependable- Returns:
- UUID of this OBJECT.
- See Also:
-
getClassType
Description copied from interface:DependableGet the unique class id for the Dependable. Every Dependable belongs to a class of Dependables.- Specified by:
getClassTypein interfaceDependable- Returns:
- type of this Dependable.
- See Also:
-
getDescriptorType
Description copied from class:TupleDescriptorEach descriptor must identify itself with its type; i.e index, check constraint whatever.- Overrides:
getDescriptorTypein classTupleDescriptor- See Also:
-
getDescriptorName
- Overrides:
getDescriptorNamein classTupleDescriptor- See Also:
-