Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl
Class PlsqlTableType

java.lang.Object
  extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.TypeClass
      extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType
          extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlCollectionType
              extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.PlsqlTableType


public class PlsqlTableType
extends SqlCollectionType

Describe PL/SQL table type, including index-by tables


Field Summary
static int DETAILS_TYPE_LENGTH
           
static int DETAILS_TYPE_PRECISION
           
static int DETAILS_TYPE_SCALE
           
protected  ElemInfo m_elemInfo
           
static int NUMBER_OF_DETAILS
           

 

Fields inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlCollectionType
m_elementType, m_elemTypeLength, m_elemTypePrecision, m_elemTypeScale, m_isNChar

 

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

 

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
PlsqlTableType(SqlName sqlName, int typeCode, ElemInfo elemInfo, SqlType elemType, int[] details, boolean generateMe, SqlType parentType, SqlReflector reflector)
           

 

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.SqlCollectionType
getElemTypeLength, getElemTypePrecision, getElemTypeScale, isNChar

 

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

 

Field Detail

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

Constructor Detail

PlsqlTableType

public PlsqlTableType(SqlName sqlName,
                      int typeCode,
                      ElemInfo elemInfo,
                      SqlType elemType,
                      int[] details,
                      boolean generateMe,
                      SqlType parentType,
                      SqlReflector reflector)

Method Detail

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

Copyright © 1998, 2012, Oracle. All Rights Reserved.