net.sourceforge.pbeans.data
Class FieldDescriptor
java.lang.Object
net.sourceforge.pbeans.data.FieldDescriptor
public class FieldDescriptor
- extends java.lang.Object
Describes a table column.
Constructor Summary |
FieldDescriptor(FieldDescriptor other,
java.lang.String[] renamedFrom)
|
FieldDescriptor(java.lang.String name,
FieldDescriptor other)
|
FieldDescriptor(java.lang.String name,
int sqlType)
|
FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable)
|
FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable,
java.lang.String[] renamedFrom,
boolean primaryKey,
boolean globalReference)
Constructs a FieldDescriptor. |
FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable,
java.lang.String renamedFrom,
boolean globalReference)
|
FieldDescriptor(java.lang.String name,
int sqlType,
java.lang.String[] renamedFrom)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldDescriptor
public FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable,
java.lang.String[] renamedFrom,
boolean primaryKey,
boolean globalReference)
- Constructs a FieldDescriptor.
- Parameters:
name
- A field name (unnormalized) as requested by the user.
This may differ slightly from the name actually used
in the database, called a normalized name.sqlType
- An integer constant from java.sql.Types.nullable
- Whether the field should accept NULL database values.renamedFrom
- A list of old field names that the infrastructure
should look at in the order given to see if they
can be renamed to create this field when necessary.
FieldDescriptor
public FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable,
java.lang.String renamedFrom,
boolean globalReference)
FieldDescriptor
public FieldDescriptor(java.lang.String name,
int sqlType,
boolean nullable)
FieldDescriptor
public FieldDescriptor(java.lang.String name,
int sqlType,
java.lang.String[] renamedFrom)
FieldDescriptor
public FieldDescriptor(java.lang.String name,
FieldDescriptor other)
FieldDescriptor
public FieldDescriptor(FieldDescriptor other,
java.lang.String[] renamedFrom)
FieldDescriptor
public FieldDescriptor(java.lang.String name,
int sqlType)
isGlobalReference
public boolean isGlobalReference()
isPrimaryKey
public boolean isPrimaryKey()
getName
public java.lang.String getName()
getSqlType
public int getSqlType()
isNullable
public boolean isNullable()
getRenamedFrom
public java.lang.String[] getRenamedFrom()