|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass
public abstract class TypeClass
Instances of the class Type represent user-declared or predefined types in SQL or PL/SQL that may have fields and methods. Currently, subclasses of Type represent PL/SQL packages, the top-level PL/SQL scope, Oracle 8 user-defined types (objects, varrays and nested tables) and the primitive database types.
This class is analogous to java.lang.Class.
Field Summary | |
---|---|
protected java.lang.Object |
m_annotation |
protected java.lang.String |
m_hint |
protected boolean |
m_isPrimitive |
protected Name |
m_name |
protected java.util.List<java.lang.String> |
m_namedTranslations |
protected int |
m_typecode |
Constructor Summary | |
---|---|
protected |
TypeClass(Name name, int typecode, boolean isPrimitive) |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAnnotation() Returns the annotation associated with the Type. |
TypeClass |
getComponentType() If this Type has a component type, return the Type object that represents the component type; otherwise returns null. |
java.util.List<AttributeField> |
getDeclaredFields(boolean publishedOnly) Returns an array of Field objects reflecting all the fields declared by this Type object. |
java.util.List<ProcedureMethod> |
getDeclaredMethods() Returns an array of Method objects reflecting all the methods declared by this Type object. |
java.util.List<AttributeField> |
getFields(boolean publishedOnly) Returns an array of Field objects reflecting all the accessible fields of this Type object. |
java.lang.String |
getHint() Returns a hint associated with the Type. |
java.lang.String |
getIntoConversion() Returns the PL/SQL function to be used for converting a SQL type into this PL/SQL type, qualified with package name. |
java.lang.String |
getIntoConversionQualified() Returns the PL/SQL function to be used for converting a SQL type into this PL/SQL type, qualified with package name. |
int |
getJdbcTypecode() Return a JDBC typecode for this type. |
int |
getModifiers() Returns the modifiers for this type, encoded in an integer. |
java.lang.String |
getName() Returns the fully-qualified name of the type represented by this Type object, as a String. |
java.util.List<java.lang.String> |
getNamedTranslations() |
Name |
getNameObject() |
java.lang.String |
getOutOfConversion() Returns the PL/SQL function to be used for converting this PL/SQL into a SQL type. |
java.lang.String |
getOutOfConversionQualified() Returns the PL/SQL function to be used for converting this PL/SQL into a SQL type, qualified with package name. |
TypeClass |
getSupertype() Returns the Type representing the supertype of the entity represented by this Type. |
int |
getTypecode() Return the typecode for this type. |
boolean |
hasConversion() Reports whether this is a PL/SQL type which has user-defined conversion functions to a SQL type. |
int |
hashCode() |
boolean |
hasMethods() |
boolean |
isArray() Determines if this Type represents an array type. |
boolean |
isObject() Determines if this Type represents an object type. |
boolean |
isPackage() The remaining methods are not adapted from java.lang.Class |
boolean |
isPrimitive() Determines if this Type represents a primitive type. |
boolean |
isTable() |
void |
setAnnotation(java.lang.Object o) Sets the annotation associated with the Type. |
void |
setHint(java.lang.String s) Sets the hint associated with the Type. |
void |
setNamedTranslations(java.util.List<java.lang.String> v) |
(package private) void |
setNameObject(Name name) |
void |
setTypecode(int typecode) set the typecode for this type. |
java.lang.String |
toString() Converts the Type to a string, as it would appear in an error message. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Name m_name
protected boolean m_isPrimitive
protected int m_typecode
protected java.lang.Object m_annotation
protected java.lang.String m_hint
protected java.util.List<java.lang.String> m_namedTranslations
Constructor Detail |
---|
protected TypeClass(Name name, int typecode, boolean isPrimitive)
Method Detail |
---|
public TypeClass getComponentType() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.util.List<AttributeField> getDeclaredFields(boolean publishedOnly) throws java.lang.SecurityException, java.sql.SQLException, PublisherException
java.lang.SecurityException
java.sql.SQLException
PublisherException
public java.util.List<ProcedureMethod> getDeclaredMethods() throws java.lang.SecurityException, java.sql.SQLException, PublisherException
java.lang.SecurityException
java.sql.SQLException
PublisherException
public java.util.List<AttributeField> getFields(boolean publishedOnly) throws java.lang.SecurityException, java.sql.SQLException, PublisherException
java.lang.SecurityException
java.sql.SQLException
PublisherException
public int getModifiers() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getName()
public TypeClass getSupertype() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public boolean isArray()
public boolean isObject()
public boolean isPrimitive()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isPackage()
public boolean isTable()
public java.lang.Object getAnnotation()
public void setAnnotation(java.lang.Object o)
public java.lang.String getHint()
public void setHint(java.lang.String s)
public java.util.List<java.lang.String> getNamedTranslations()
public void setNamedTranslations(java.util.List<java.lang.String> v)
public int getTypecode()
public void setTypecode(int typecode)
public int getJdbcTypecode()
public boolean hasMethods() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public Name getNameObject()
void setNameObject(Name name)
public boolean hasConversion()
public java.lang.String getOutOfConversion()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
public java.lang.String getOutOfConversionQualified()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
public java.lang.String getIntoConversion()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
public java.lang.String getIntoConversionQualified()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |