Class ColumnRef
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.ColumnRef
-
- All Implemented Interfaces:
FieldMapping
public class ColumnRef extends Object implements FieldMapping
-
-
Constructor Summary
Constructors Constructor Description ColumnRef(org.netbeans.modules.dbschema.ColumnElement columnElement, QueryTable table)
ColumnRef(org.netbeans.modules.dbschema.ColumnElement columnElement, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.netbeans.modules.dbschema.ColumnElement
getColumnElement()
Return the actual ColumnElement associated with this column.int
getColumnLength()
This method return the length of the column and -1 if unknown.String
getColumnName()
This method return the name of the column.int
getColumnType()
This method return int corresponding to java.sql.Types.int
getIndex()
Return the position of this column in the SQL statement.String
getName()
Return the name of this column.QueryTable
getQueryTable()
Return the QueryTable associated with this column.Object
getValue()
Return the input value for this column.void
setIndex(int value)
Set the position of this column in the SQL statement.
-
-
-
Constructor Detail
-
ColumnRef
public ColumnRef(org.netbeans.modules.dbschema.ColumnElement columnElement, QueryTable table)
-
ColumnRef
public ColumnRef(org.netbeans.modules.dbschema.ColumnElement columnElement, Object value)
-
-
Method Detail
-
getColumnElement
public org.netbeans.modules.dbschema.ColumnElement getColumnElement()
Return the actual ColumnElement associated with this column.- Returns:
- the ColumnElement associated with this
-
getIndex
public int getIndex()
Return the position of this column in the SQL statement.- Returns:
- the position of this column in the SQL statement
-
setIndex
public void setIndex(int value)
Set the position of this column in the SQL statement.- Parameters:
value
- - the new position
-
getValue
public Object getValue()
Return the input value for this column.- Returns:
- the input value for this column
-
getQueryTable
public QueryTable getQueryTable()
Return the QueryTable associated with this column.- Returns:
- the QueryTable associated with this column.
-
getName
public String getName()
Return the name of this column.- Returns:
- the name of this column.
-
getColumnType
public int getColumnType()
This method return int corresponding to java.sql.Types.- Specified by:
getColumnType
in interfaceFieldMapping
-
getColumnName
public String getColumnName()
This method return the name of the column.- Specified by:
getColumnName
in interfaceFieldMapping
-
getColumnLength
public int getColumnLength()
This method return the length of the column and -1 if unknown.- Specified by:
getColumnLength
in interfaceFieldMapping
-
-