|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.catalog.types.DefaultInfoImpl
Field Summary | |
private static int |
BITS_MASK_IS_DEFAULTVALUE_AUTOINC
|
private java.lang.String |
defaultText
|
private DataValueDescriptor |
defaultValue
This class implements Formatable. |
private int |
type
|
Constructor Summary | |
DefaultInfoImpl()
Public niladic constructor. |
|
DefaultInfoImpl(boolean isDefaultValueAutoinc,
java.lang.String defaultText,
DataValueDescriptor defaultValue)
Constructor for use with numeric types |
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. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
isDefaultValueAutoinc()
Is default value generated by auto increment? |
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 static final int BITS_MASK_IS_DEFAULTVALUE_AUTOINC
Constructor Detail |
public DefaultInfoImpl()
public DefaultInfoImpl(boolean isDefaultValueAutoinc, java.lang.String defaultText, DataValueDescriptor defaultValue)
defaultText
- The text of the default.Method Detail |
public java.lang.String getDefaultText()
DefaultInfo
getDefaultText
in interface DefaultInfo
DefaultInfo.getDefaultText()
public java.lang.String toString()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here.
java.io.IOException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public DataValueDescriptor getDefaultValue()
public void setDefaultValue(DataValueDescriptor defaultValue)
defaultValue
- The default value.
public boolean isDefaultValueAutoinc()
DefaultInfo
isDefaultValueAutoinc
in interface DefaultInfo
DefaultInfo.isDefaultValueAutoinc()
private static int calcType(boolean isDefaultValueAutoinc)
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |