|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ catalog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.sql.catalog
Class DDdependableFinder

java.lang.Objectorg.apache.derby.impl.sql.catalog.DDdependableFinder
- All Implemented Interfaces:
- org.apache.derby.catalog.DependableFinder, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat
- Direct Known Subclasses:
- DDColumnDependableFinder
- public class DDdependableFinder
- extends java.lang.Object
- implements org.apache.derby.catalog.DependableFinder, org.apache.derby.iapi.services.io.Formatable
- extends java.lang.Object
Class for all DependableFinders in the core DataDictionary
| Field Summary | |
private org.apache.derby.iapi.sql.dictionary.DataDictionary |
dataDictionary
|
private int |
formatId
|
private org.apache.derby.iapi.services.uuid.UUIDFactory |
uuidFactory
|
| Constructor Summary | |
DDdependableFinder(int formatId)
Public constructor for Formatable hoo-hah. |
|
| Method Summary | |
private org.apache.derby.iapi.sql.dictionary.DataDictionary |
getDataDictionary()
Gets the datadictionary for this connection. |
protected org.apache.derby.catalog.Dependable |
getDependable(org.apache.derby.iapi.sql.dictionary.DataDictionary dd,
org.apache.derby.catalog.UUID dependableObjectID)
Get the dependable for the given UUID |
org.apache.derby.catalog.Dependable |
getDependable(java.lang.String dependableObjectID)
Gets the in-memory object associated with the passed-in object ID. |
org.apache.derby.catalog.Dependable |
getDependable(org.apache.derby.catalog.UUID dependableObjectID)
Gets the AliasDescriptor associated with the passed-in object ID. |
protected java.lang.String |
getSQLObjectName(org.apache.derby.iapi.sql.dictionary.DataDictionary dd,
org.apache.derby.catalog.UUID dependableObjectID)
Get the SQL object name for the given UUID |
java.lang.String |
getSQLObjectName(java.lang.String idString)
Get the name of the SQL Object that corresponds to the specified UUID String. |
java.lang.String |
getSQLObjectType()
The name of the class of Dependables as a "SQL Object" which this Finder can find. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
private org.apache.derby.catalog.UUID |
recreateUUID(java.lang.String idString)
Get the UUID for the given string |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
dataDictionary
private transient org.apache.derby.iapi.sql.dictionary.DataDictionary dataDictionary
uuidFactory
private transient org.apache.derby.iapi.services.uuid.UUIDFactory uuidFactory
formatId
private final int formatId
| Constructor Detail |
DDdependableFinder
public DDdependableFinder(int formatId)
- Public constructor for Formatable hoo-hah.
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Read this object from a stream of stored objects. Nothing to
do. Our persistent representation is just a 2-byte format id.
- Specified by:
readExternalin interfacejava.io.Externalizable
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Write this object to a stream of stored objects. Again, nothing
to do. We just stamp the output stream with our Format id.
- Specified by:
writeExternalin interfacejava.io.Externalizable
getTypeFormatId
public final int getTypeFormatId()
- Get the formatID which corresponds to this class.
- Specified by:
getTypeFormatIdin interfaceorg.apache.derby.iapi.services.io.TypedFormat
getDependable
public final org.apache.derby.catalog.Dependable getDependable(java.lang.String dependableObjectID) throws java.sql.SQLException
- Gets the in-memory object associated with the passed-in object ID.
- Specified by:
getDependablein interfaceorg.apache.derby.catalog.DependableFinder
getDependable
public final org.apache.derby.catalog.Dependable getDependable(org.apache.derby.catalog.UUID dependableObjectID) throws java.sql.SQLException
- Gets the AliasDescriptor associated with the passed-in object ID.
- Specified by:
getDependablein interfaceorg.apache.derby.catalog.DependableFinder
getSQLObjectName
public final java.lang.String getSQLObjectName(java.lang.String idString) throws java.sql.SQLException
- Description copied from interface:
org.apache.derby.catalog.DependableFinder - Get the name of the SQL Object that corresponds to the specified
UUID String. For example, if getSQLObjectType() returns "Table",
this will return the table name.
- Specified by:
getSQLObjectNamein interfaceorg.apache.derby.catalog.DependableFinder
getSQLObjectType
public java.lang.String getSQLObjectType()
- Description copied from interface:
org.apache.derby.catalog.DependableFinder - The name of the class of Dependables as a "SQL Object" which this
Finder can find.
This is a value like "Table", "View", or "Publication".
Every DependableFinder can find some class of Dependables.
- Specified by:
getSQLObjectTypein interfaceorg.apache.derby.catalog.DependableFinder
getDataDictionary
private org.apache.derby.iapi.sql.dictionary.DataDictionary getDataDictionary() throws org.apache.derby.iapi.error.StandardException
- Gets the datadictionary for this connection.
recreateUUID
private org.apache.derby.catalog.UUID recreateUUID(java.lang.String idString)
- Get the UUID for the given string
getDependable
protected org.apache.derby.catalog.Dependable getDependable(org.apache.derby.iapi.sql.dictionary.DataDictionary dd, org.apache.derby.catalog.UUID dependableObjectID) throws org.apache.derby.iapi.error.StandardException
- Get the dependable for the given UUID
getSQLObjectName
protected java.lang.String getSQLObjectName(org.apache.derby.iapi.sql.dictionary.DataDictionary dd, org.apache.derby.catalog.UUID dependableObjectID) throws org.apache.derby.iapi.error.StandardException
- Get the SQL object name for the given UUID
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ catalog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.impl.sql.catalog.DDdependableFinder