public class Column extends Object implements Serializable
Constructor and Description |
---|
Column() |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(Alias vAlias) |
void |
addAlias(int index,
Alias vAlias) |
void |
addConstraint(Constraint vConstraint) |
void |
addConstraint(int index,
Constraint vConstraint) |
Enumeration<Alias> |
enumerateAlias()
Method enumerateAlias.
|
Enumeration<Constraint> |
enumerateConstraint()
Method enumerateConstraint.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Alias[] |
getAlias()
Method getAlias.Returns the contents of the collection in an
Array.
|
Alias |
getAlias(int index)
Method getAlias.
|
List<Alias> |
getAliasCollection()
Method getAliasCollection.Returns a reference to
'_aliasList'.
|
int |
getAliasCount()
Method getAliasCount.
|
Constraint[] |
getConstraint()
Method getConstraint.Returns the contents of the collection
in an Array.
|
Constraint |
getConstraint(int index)
Method getConstraint.
|
List<Constraint> |
getConstraintCollection()
Method getConstraintCollection.Returns a reference to
'_constraintList'.
|
int |
getConstraintCount()
Method getConstraintCount.
|
String |
getJavaType()
Returns the value of field 'javaType'.
|
String |
getName()
Returns the value of field 'name'.
|
String |
getSqlType()
Returns the value of field 'sqlType'.
|
String |
getVisible()
Returns the value of field 'visible'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Alias> |
iterateAlias()
Method iterateAlias.
|
Iterator<Constraint> |
iterateConstraint()
Method iterateConstraint.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
boolean |
removeAlias(Alias vAlias)
Method removeAlias.
|
Alias |
removeAliasAt(int index)
Method removeAliasAt.
|
void |
removeAllAlias() |
void |
removeAllConstraint() |
boolean |
removeConstraint(Constraint vConstraint)
Method removeConstraint.
|
Constraint |
removeConstraintAt(int index)
Method removeConstraintAt.
|
void |
setAlias(Alias[] vAliasArray) |
void |
setAlias(int index,
Alias vAlias) |
void |
setAlias(List<Alias> vAliasList)
Sets the value of '_aliasList' by copying the given Vector.
|
void |
setAliasCollection(List<Alias> aliasList)
Deprecated.
|
void |
setConstraint(Constraint[] vConstraintArray) |
void |
setConstraint(int index,
Constraint vConstraint) |
void |
setConstraint(List<Constraint> vConstraintList)
Sets the value of '_constraintList' by copying the given
Vector.
|
void |
setConstraintCollection(List<Constraint> constraintList)
Deprecated.
|
void |
setJavaType(String javaType)
Sets the value of field 'javaType'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setSqlType(String sqlType)
Sets the value of field 'sqlType'.
|
void |
setVisible(String visible)
Sets the value of field 'visible'.
|
static Column |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addAlias(Alias vAlias) throws IndexOutOfBoundsException
vAlias
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAlias(int index, Alias vAlias) throws IndexOutOfBoundsException
index
- vAlias
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addConstraint(Constraint vConstraint) throws IndexOutOfBoundsException
vConstraint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addConstraint(int index, Constraint vConstraint) throws IndexOutOfBoundsException
index
- vConstraint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Alias> enumerateAlias()
public Enumeration<Constraint> enumerateConstraint()
public boolean equals(Object obj)
public Alias getAlias(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Alias[] getAlias()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Alias> getAliasCollection()
public int getAliasCount()
public Constraint getConstraint(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Constraint[] getConstraint()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Constraint> getConstraintCollection()
public int getConstraintCount()
public String getJavaType()
public String getName()
public String getSqlType()
public String getVisible()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Alias> iterateAlias()
public Iterator<Constraint> iterateConstraint()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic boolean removeAlias(Alias vAlias)
vAlias
- public Alias removeAliasAt(int index)
index
- public void removeAllAlias()
public void removeAllConstraint()
public boolean removeConstraint(Constraint vConstraint)
vConstraint
- public Constraint removeConstraintAt(int index)
index
- public void setAlias(int index, Alias vAlias) throws IndexOutOfBoundsException
index
- vAlias
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAlias(Alias[] vAliasArray)
vAliasArray
- public void setAlias(List<Alias> vAliasList)
vAliasList
- the Vector to copy.public void setAliasCollection(List<Alias> aliasList)
aliasList
- the Vector to set.public void setConstraint(int index, Constraint vConstraint) throws IndexOutOfBoundsException
index
- vConstraint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setConstraint(Constraint[] vConstraintArray)
vConstraintArray
- public void setConstraint(List<Constraint> vConstraintList)
vConstraintList
- the Vector to copy.public void setConstraintCollection(List<Constraint> constraintList)
constraintList
- the Vector to set.public void setJavaType(String javaType)
javaType
- the value of field 'javaType'.public void setName(String name)
name
- the value of field 'name'.public void setSqlType(String sqlType)
sqlType
- the value of field 'sqlType'.public void setVisible(String visible)
visible
- the value of field 'visible'.public static Column unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2016. All rights reserved.