Skip navigation links
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl
Class PlsqlTableType
java.lang.Object
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlCollectionType
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.PlsqlTableType
-
public class PlsqlTableType
- extends SqlCollectionType
Describe PL/SQL table type, including index-by tables
Fields inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType |
CODE_OPAQUE, CODE_SQLJTYPE, m_isReused, m_parentType, m_reflector, m_version, m_viewCache, ORACLE_TYPES_BOOLEAN, ORACLE_TYPES_NCHAR, ORACLE_TYPES_NCLOB, ORACLE_TYPES_TBD, SQLJTYPE_BOTH, SQLJTYPE_BOTH8I, SQLJTYPE_CUSTOMDATUM, SQLJTYPE_ORADATA, SQLJTYPE_SERIALIZABLE, SQLJTYPE_SQLDATA |
Method Summary |
void |
accept(PublisherVisitor v)
|
TypeClass |
getComponentType()
Return the Type object that represents the component type of this collection type. |
static TypeClass |
getComponentType(ElemInfo elemInfo, SqlReflector reflector, SqlType parentType, int[] details)
|
protected ElemInfo |
getElemInfo()
|
static ElemInfo |
getElemInfo(java.lang.String _schema, java.lang.String _typeName, java.lang.String packageName, java.lang.String methodName, java.lang.String methodNo, ViewCache viewCache)
|
private static java.lang.String |
getIndexType(SqlName sqlName, ViewCache viewCache)
|
static SqlType |
newInstance(SqlName sqlName, int typeCode, ElemInfo elemInfo, SqlType elemType, int[] details, boolean generateMe, SqlType parentType, boolean isGrandparent, SqlReflector reflector)
Create a PL/SQL table type. |
Methods inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType |
addAttribute, dependsOn, getAttributes, getBothConversions, getConversionFunDecl, getConversionPL2SQLFunBody, getConversionSQL2PLFunBody, getIntoConversion, getIntoConversionQualified, getIntoConvStmts, getOutOfConversion, getOutOfConversionQualified, getOutOfConvStmts, getSqljKind, getSqlName, getSqlTypeDecl, getSqlTypeDrop, getTargetTypeName, getTargetTypeName, getTypeName, getVersion, hasConversion, isCollection, isJavaStruct, isOpaque, isPlsqlRecord, isPlsqlTable, isRef, isSqlStatement, isStruct, setVersion |
Methods inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass |
equals, getAnnotation, 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 |
m_elemInfo
protected ElemInfo m_elemInfo
NUMBER_OF_DETAILS
public static final int NUMBER_OF_DETAILS
-
- See Also:
- Constant Field Values
DETAILS_TYPE_LENGTH
public static final int DETAILS_TYPE_LENGTH
-
- See Also:
- Constant Field Values
DETAILS_TYPE_PRECISION
public static final int DETAILS_TYPE_PRECISION
-
- See Also:
- Constant Field Values
DETAILS_TYPE_SCALE
public static final int DETAILS_TYPE_SCALE
-
- See Also:
- Constant Field Values
PlsqlTableType
public PlsqlTableType(SqlName sqlName,
int typeCode,
ElemInfo elemInfo,
SqlType elemType,
int[] details,
boolean generateMe,
SqlType parentType,
SqlReflector reflector)
getElemInfo
protected ElemInfo getElemInfo()
-
- Overrides:
getElemInfo
in class SqlCollectionType
getElemInfo
public static ElemInfo getElemInfo(java.lang.String _schema,
java.lang.String _typeName,
java.lang.String packageName,
java.lang.String methodName,
java.lang.String methodNo,
ViewCache viewCache)
throws java.sql.SQLException
-
- Throws:
java.sql.SQLException
getComponentType
public TypeClass getComponentType()
- Description copied from class:
SqlCollectionType
- Return the Type object that represents the component type of this collection type.
-
- Overrides:
getComponentType
in class SqlCollectionType
getComponentType
public static TypeClass getComponentType(ElemInfo elemInfo,
SqlReflector reflector,
SqlType parentType,
int[] details)
throws java.sql.SQLException,
PublisherException
-
- Throws:
java.sql.SQLException
PublisherException
getIndexType
private static java.lang.String getIndexType(SqlName sqlName,
ViewCache viewCache)
throws java.sql.SQLException
-
- Throws:
java.sql.SQLException
newInstance
public static SqlType newInstance(SqlName sqlName,
int typeCode,
ElemInfo elemInfo,
SqlType elemType,
int[] details,
boolean generateMe,
SqlType parentType,
boolean isGrandparent,
SqlReflector reflector)
throws java.sql.SQLException,
PublisherException
- Create a PL/SQL table type. If -plsqlindexbytable is set and whenever possible, the method will return predefined scalar index-by table types, which will be mapped into Java arrays.
-
- Parameters:
sqlName
-
typeCode
-
elemInfo
-
elemType
-
details
-
generateMe
-
parentType
-
isGrandparent
-
options
-
reflector
-
- Returns:
- either a newly defined PL/SQL Table type or a predefined scalar PL/SQL index-by table type
- Throws:
java.sql.SQLException
PublisherException
accept
public void accept(PublisherVisitor v)
-
- Overrides:
accept
in class SqlType
Skip navigation links