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.ColumnElementgetColumnElement()Return the actual ColumnElement associated with this column.intgetColumnLength()This method return the length of the column and -1 if unknown.StringgetColumnName()This method return the name of the column.intgetColumnType()This method return int corresponding to java.sql.Types.intgetIndex()Return the position of this column in the SQL statement.StringgetName()Return the name of this column.QueryTablegetQueryTable()Return the QueryTable associated with this column.ObjectgetValue()Return the input value for this column.voidsetIndex(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:
getColumnTypein interfaceFieldMapping
-
getColumnName
public String getColumnName()
This method return the name of the column.- Specified by:
getColumnNamein interfaceFieldMapping
-
getColumnLength
public int getColumnLength()
This method return the length of the column and -1 if unknown.- Specified by:
getColumnLengthin interfaceFieldMapping
-
-