|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.catalog.types.DefaultInfoImpl
public class DefaultInfoImpl
| Field Summary | |
|---|---|
private static int |
BITS_MASK_IS_DEFAULTVALUE_AUTOINC
|
private static int |
BITS_MASK_IS_GENERATED_COLUMN
|
private java.lang.String |
defaultText
|
private DataValueDescriptor |
defaultValue
This class implements Formatable. |
private java.lang.String |
originalCurrentSchema
|
private java.lang.String[] |
referencedColumnNames
|
private int |
type
|
| Constructor Summary | |
|---|---|
DefaultInfoImpl()
Public niladic constructor. |
|
DefaultInfoImpl(boolean isDefaultValueAutoinc,
java.lang.String defaultText,
DataValueDescriptor defaultValue)
Constructor for use with numeric types |
|
DefaultInfoImpl(java.lang.String defaultText,
java.lang.String[] referencedColumnNames,
java.lang.String originalCurrentSchema)
Constructor for use with generated columns |
|
| Method Summary | |
|---|---|
private static int |
calcType(boolean isDefaultValueAutoinc)
This function returns stored value for flags and so on. |
java.lang.String |
getDefaultText()
Get the text of a default. |
DataValueDescriptor |
getDefaultValue()
Get the default value. |
java.lang.String |
getOriginalCurrentSchema()
Return the name of the current schema when the default was created. |
java.lang.String[] |
getReferencedColumnNames()
If this default is a generation clause, then return the names of other columns in the row which the generation clause references. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
isDefaultValueAutoinc()
Is default value generated by auto increment? |
boolean |
isGeneratedColumn()
Return true if this is the generation clause for a generated column. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
void |
setDefaultValue(DataValueDescriptor defaultValue)
Set the default value. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private DataValueDescriptor defaultValue
private java.lang.String defaultText
private int type
private java.lang.String[] referencedColumnNames
private java.lang.String originalCurrentSchema
private static final int BITS_MASK_IS_DEFAULTVALUE_AUTOINC
private static final int BITS_MASK_IS_GENERATED_COLUMN
| Constructor Detail |
|---|
public DefaultInfoImpl()
public DefaultInfoImpl(boolean isDefaultValueAutoinc,
java.lang.String defaultText,
DataValueDescriptor defaultValue)
defaultText - The text of the default.
public DefaultInfoImpl(java.lang.String defaultText,
java.lang.String[] referencedColumnNames,
java.lang.String originalCurrentSchema)
defaultText - Text of generation clause.referencedColumnNames - names of other columns in the base row which are mentioned in the generation clause.originalCurrentSchema - Schema in effect when the generate column was added to the table.| Method Detail |
|---|
public java.lang.String getDefaultText()
DefaultInfo
getDefaultText in interface DefaultInfoDefaultInfo.getDefaultText()public java.lang.String[] getReferencedColumnNames()
DefaultInfo
getReferencedColumnNames in interface DefaultInfoDefaultInfo.getReferencedColumnNames()public java.lang.String getOriginalCurrentSchema()
DefaultInfo
getOriginalCurrentSchema in interface DefaultInfoDefaultInfo.getOriginalCurrentSchema()public java.lang.String toString()
toString in class java.lang.Object
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here.
java.io.IOException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic DataValueDescriptor getDefaultValue()
public void setDefaultValue(DataValueDescriptor defaultValue)
defaultValue - The default value.public boolean isDefaultValueAutoinc()
DefaultInfo
isDefaultValueAutoinc in interface DefaultInfoDefaultInfo.isDefaultValueAutoinc()public boolean isGeneratedColumn()
DefaultInfo
isGeneratedColumn in interface DefaultInfoDefaultInfo.isGeneratedColumn()private static int calcType(boolean isDefaultValueAutoinc)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||