public final class Column
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Column.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Constructor and Description |
---|
Column(Column aColumn,
java.lang.String aName)
Creates a copy of the column, with a new name.
|
Column(Column aColumn,
java.lang.String aName,
boolean aIsInstancePageProperty)
Creates a copy of the column, with a new name using aIsInstancePageProperty.
|
Column(java.lang.String aName,
com.pega.pegarules.priv.database.DatabaseStateToken aStateToken,
int aPos,
int aType,
boolean aIsKey,
java.lang.String aDescr,
int aLength,
boolean aNullable)
Deprecated.
use the constructor that takes a catalog and schema name
|
Column(java.lang.String aCatalog,
java.lang.String aSchema,
java.lang.String aTable,
java.lang.String aName,
com.pega.pegarules.priv.database.DatabaseStateToken aStateToken,
int aPos,
int aType,
java.lang.String aDBTypeName,
boolean aIsKey,
java.lang.String aDescr,
int aLength,
boolean aNullable)
Creates a column.
|
Column(java.lang.String aCatalog,
java.lang.String aSchema,
java.lang.String aTable,
java.lang.String aName,
com.pega.pegarules.priv.database.DatabaseStateToken aStateToken,
int aPos,
int aType,
java.lang.String aDBTypeName,
boolean aIsKey,
java.lang.String aDescr,
int aLength,
int aDecimalDigits,
boolean aNullable)
Creates a column.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalog()
Return the catalog.
|
java.lang.String |
getDBTypeName()
Return the type of this column.
|
int |
getDecimalDigits()
Returns the number of decimal digits for this column, if known.
|
java.lang.String |
getDescr()
Gets the descr
|
boolean |
getInstancePageProperty()
May be property is part of Instance page
|
int |
getLength()
Returns the length or precision of the column.
|
java.lang.String |
getName()
Gets the name of the column
|
int |
getPosition()
Returns the position of the column.
|
java.lang.String |
getSchema()
Return the schema.
|
java.lang.String |
getTable()
Return the table.
|
int |
getType()
Gets the type of the column.
|
boolean |
isInLikeClause()
Is this column in a
like clause? |
boolean |
isKey()
Is this column a key?
|
boolean |
isNullable()
May be column contain null values?
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
@Deprecated public Column(java.lang.String aName, com.pega.pegarules.priv.database.DatabaseStateToken aStateToken, int aPos, int aType, boolean aIsKey, java.lang.String aDescr, int aLength, boolean aNullable)
aName
- the name of the column, or null if unknownaStateToken
- aPos
- the position of the column, if knownaType
- the type of the column--must be from
java.sql.Types
aIsKey
- is this column a key?aDescr
- a description of the column (or
null
if there is none)aLength
- length of precision of the column, or a negative number if it is unknownaNullable
- can the column value be null?public Column(java.lang.String aCatalog, java.lang.String aSchema, java.lang.String aTable, java.lang.String aName, com.pega.pegarules.priv.database.DatabaseStateToken aStateToken, int aPos, int aType, java.lang.String aDBTypeName, boolean aIsKey, java.lang.String aDescr, int aLength, boolean aNullable)
aCatalog
- the catalog the column is defined inaSchema
- the schema the column is defined inaTable
- the table the column is defined inaName
- the name of the columnaStateToken
- aPos
- the position of the columnaType
- the type of the column--must be from
java.sql.Types
aDBTypeName
- the name of the column type, as given by the
database productaIsKey
- is this column a key?aDescr
- a description of the column (or
null
if there is none)aLength
- length of precision of the columnaNullable
- can the column value be null?public Column(java.lang.String aCatalog, java.lang.String aSchema, java.lang.String aTable, java.lang.String aName, com.pega.pegarules.priv.database.DatabaseStateToken aStateToken, int aPos, int aType, java.lang.String aDBTypeName, boolean aIsKey, java.lang.String aDescr, int aLength, int aDecimalDigits, boolean aNullable)
aCatalog
- the catalog the column is defined inaSchema
- the schema the column is defined inaTable
- the table the column is defined inaName
- the name of the columnaStateToken
- aPos
- the position of the columnaType
- the type of the column--must be from
java.sql.Types
aDBTypeName
- the name of the column type, as given by the database productaIsKey
- is this column a key?aDescr
- a description of the column (or null
if there is
none)aLength
- length of precision of the columnaDecimalDigits
- the number of decimal digits; may be zero if not valid for
this column typeaNullable
- can the column value be null?public Column(Column aColumn, java.lang.String aName)
aColumn
- the column to copyaName
- the new namepublic Column(Column aColumn, java.lang.String aName, boolean aIsInstancePageProperty)
aColumn
- the column to copyaName
- the new nameaIsInstancePageProperty
- public boolean getInstancePageProperty()
public java.lang.String getName()
public int getType()
java.sql.Types
public java.lang.String getDescr()
public boolean isNullable()
public int getLength()
public int getDecimalDigits()
public boolean isKey()
public int getPosition()
public java.lang.String getCatalog()
public java.lang.String getSchema()
public java.lang.String getTable()
public java.lang.String getDBTypeName()
public boolean isInLikeClause()
like
clause?public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Pegasystems Inc. All Rights Reserved.