|
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
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType
public class SqlType
Field Summary | |
---|---|
static int |
CODE_OPAQUE |
static int |
CODE_SQLJTYPE |
private java.util.List<SqlType> |
m_dependTypes |
protected boolean |
m_isReused |
protected SqlType |
m_parentType |
protected SqlReflector |
m_reflector |
protected java.lang.String |
m_version |
protected ViewCache |
m_viewCache |
static int |
ORACLE_TYPES_BOOLEAN |
static int |
ORACLE_TYPES_NCHAR |
static int |
ORACLE_TYPES_NCLOB |
static int |
ORACLE_TYPES_TBD |
static int |
SQLJTYPE_BOTH |
static int |
SQLJTYPE_BOTH8I |
static int |
SQLJTYPE_CUSTOMDATUM |
static int |
SQLJTYPE_ORADATA |
static int |
SQLJTYPE_SERIALIZABLE |
static int |
SQLJTYPE_SQLDATA |
Fields inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass |
---|
m_annotation, m_hint, m_isPrimitive, m_name, m_namedTranslations, m_typecode |
Constructor Summary | |
---|---|
(package private) |
SqlType(SqlName name, int typecode) This constructor is used for predefined PL/SQL to SQL type mapping. |
(package private) |
SqlType(SqlName sqlName, int typecode, boolean generateMe, boolean isPrimitive, SqlType parentType, SqlReflector reflector) |
protected |
SqlType(SqlName sqlName, int typecode, boolean generateMe, SqlType parentType, SqlReflector reflector) This constructor is used for user-defined and REF types. |
|
SqlType(java.lang.String name, int typecode) This constructor is used for predefined SQL types. |
Method Summary | |
---|---|
void |
accept(PublisherVisitor v) |
void |
addAttribute(java.lang.String sqlField, java.lang.String javaField) Add an attribute to the collection of attributes of a SqlType. |
(package private) boolean |
dependsOn(SqlType t) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() Get the attribute hashtable associated with a SqlType. |
java.lang.String |
getBothConversions() |
java.lang.String |
getConversionFunDecl() |
java.lang.String |
getConversionPL2SQLFunBody() |
java.lang.String |
getConversionSQL2PLFunBody() |
java.lang.String |
getIntoConversion() Returns the PL/SQL function to be used for converting a SQL type into this PL/SQL type. |
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. |
java.lang.String |
getIntoConvStmts(java.lang.String formatPrefix, java.lang.String maybeSql, java.lang.String maybePlsql) |
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. |
java.lang.String |
getOutOfConvStmts(java.lang.String formatPrefix, java.lang.String maybePlsql, java.lang.String maybeSql) |
int |
getSqljKind() |
SqlName |
getSqlName() |
java.lang.String |
getSqlTypeDecl() |
java.lang.String |
getSqlTypeDrop() |
java.lang.String |
getTargetTypeName() Reports the SQL type into which the PL/SQL can be converted. |
java.lang.String |
getTargetTypeName(int schemaNames) |
java.lang.String |
getTypeName() |
java.lang.String |
getVersion() Returns the version string of a SqlType |
boolean |
hasConversion() Reports whether this is a PL/SQL type which has user-defined conversion functions to a SQL type. |
boolean |
isCollection() |
boolean |
isJavaStruct() |
boolean |
isOpaque() |
boolean |
isPlsqlRecord() |
boolean |
isPlsqlTable() |
boolean |
isRef() |
boolean |
isSqlStatement() |
boolean |
isStruct() |
void |
setVersion(java.lang.String version) Set the version string of a declared type |
Methods inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass |
---|
equals, getAnnotation, getComponentType, getDeclaredFields, getDeclaredMethods, getFields, getHint, getJdbcTypecode, getModifiers, getName, getNamedTranslations, getNameObject, getSupertype, getTypecode, hashCode, hasMethods, isArray, isObject, isPackage, isPrimitive, isTable, setAnnotation, setHint, setNamedTranslations, setNameObject, setTypecode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CODE_OPAQUE
public static final int CODE_SQLJTYPE
public static final int SQLJTYPE_SQLDATA
public static final int SQLJTYPE_CUSTOMDATUM
public static final int SQLJTYPE_SERIALIZABLE
public static final int SQLJTYPE_ORADATA
public static final int SQLJTYPE_BOTH
public static final int SQLJTYPE_BOTH8I
public static final int ORACLE_TYPES_NCHAR
public static final int ORACLE_TYPES_NCLOB
public static final int ORACLE_TYPES_BOOLEAN
public static final int ORACLE_TYPES_TBD
protected java.lang.String m_version
protected SqlReflector m_reflector
protected ViewCache m_viewCache
protected SqlType m_parentType
protected boolean m_isReused
private java.util.List<SqlType> m_dependTypes
Constructor Detail |
---|
protected SqlType(SqlName sqlName, int typecode, boolean generateMe, SqlType parentType, SqlReflector reflector)
SqlType(SqlName sqlName, int typecode, boolean generateMe, boolean isPrimitive, SqlType parentType, SqlReflector reflector)
public SqlType(java.lang.String name, int typecode)
SqlType(SqlName name, int typecode)
Method Detail |
---|
public SqlName getSqlName()
public boolean isRef()
public boolean isCollection()
public boolean isPlsqlTable()
public boolean isPlsqlRecord()
public boolean isOpaque()
public boolean isJavaStruct()
public boolean isSqlStatement()
public int getSqljKind()
public boolean isStruct()
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void addAttribute(java.lang.String sqlField, java.lang.String javaField)
boolean dependsOn(SqlType t)
public boolean hasConversion()
TypeClass
hasConversion
in class TypeClass
public java.lang.String getTargetTypeName()
public java.lang.String getTargetTypeName(int schemaNames)
public java.lang.String getTypeName()
public java.lang.String getOutOfConversion()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
getOutOfConversion
in class TypeClass
public java.lang.String getIntoConversion()
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
getIntoConversion
in class TypeClass
public java.lang.String getOutOfConversionQualified()
TypeClass
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
getOutOfConversionQualified
in class TypeClass
public java.lang.String getIntoConversionQualified()
TypeClass
Returns null if this is not a PL/SQL type or if it does not have user-defined conversions.
getIntoConversionQualified
in class TypeClass
public java.lang.String getSqlTypeDecl() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getSqlTypeDrop() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getConversionFunDecl() throws PublisherException, java.sql.SQLException
PublisherException
java.sql.SQLException
public java.lang.String getConversionPL2SQLFunBody() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getConversionSQL2PLFunBody() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getBothConversions() throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getIntoConvStmts(java.lang.String formatPrefix, java.lang.String maybeSql, java.lang.String maybePlsql) throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public java.lang.String getOutOfConvStmts(java.lang.String formatPrefix, java.lang.String maybePlsql, java.lang.String maybeSql) throws java.sql.SQLException, PublisherException
java.sql.SQLException
PublisherException
public void accept(PublisherVisitor v)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |