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 AttributeField

java.lang.Object
  extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.AttributeField

All Implemented Interfaces:
java.lang.Comparable<AttributeField>

public class AttributeField
extends java.lang.Object
implements java.lang.Comparable<AttributeField>

Description of an attribute for unparsing.


Field Summary
protected  int m_dataLength
           
protected  boolean m_isNChar
           
protected  java.lang.String m_name
           
protected  int m_precision
           
protected  SqlReflector m_reflector
           
protected  int m_scale
           
protected  TypeClass m_type
           

 

Constructor Summary
AttributeField(java.lang.String name, TypeClass type, int dataLength, int precision, int scale, boolean ncharFormOfUse, SqlReflector reflector)
           
AttributeField(java.lang.String name, TypeClass type, int dataLength, int precision, int scale, java.lang.String character_set_name, SqlReflector reflector)
           

 

Method Summary
 int compareTo(AttributeField o)
           
 int getDataLength()
          Returns the Type object of the declared type of the field.
 java.lang.String getName()
           
 int getPrecision()
           
 int getScale()
           
 TypeClass getType()
          Returns the Type object of the declared type of the field.
 boolean isNChar()
           
 java.lang.String printTypeWithLength()
           
 java.lang.String printTypeWithLength(int schemaName)
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

m_name

protected java.lang.String m_name

m_type

protected TypeClass m_type

m_dataLength

protected int m_dataLength

m_precision

protected int m_precision

m_scale

protected int m_scale

m_isNChar

protected boolean m_isNChar

m_reflector

protected SqlReflector m_reflector

Constructor Detail

AttributeField

public AttributeField(java.lang.String name,
                      TypeClass type,
                      int dataLength,
                      int precision,
                      int scale,
                      boolean ncharFormOfUse,
                      SqlReflector reflector)

AttributeField

public AttributeField(java.lang.String name,
                      TypeClass type,
                      int dataLength,
                      int precision,
                      int scale,
                      java.lang.String character_set_name,
                      SqlReflector reflector)

Method Detail

getName

public java.lang.String getName()
Returns:
the name of the field represented by this Field object

getType

public TypeClass getType()
Returns the Type object of the declared type of the field.

getDataLength

public int getDataLength()
Returns the Type object of the declared type of the field.

getPrecision

public int getPrecision()

getScale

public int getScale()

isNChar

public boolean isNChar()

printTypeWithLength

public java.lang.String printTypeWithLength()

printTypeWithLength

public java.lang.String printTypeWithLength(int schemaName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(AttributeField o)
Specified by:
compareTo in interface java.lang.Comparable<AttributeField>

Skip navigation links

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