ijgen.generator.model
Class FieldDefinition

java.lang.Object
  extended by ijgen.generator.model.FieldDefinition
All Implemented Interfaces:
java.io.Serializable

public class FieldDefinition
extends java.lang.Object
implements java.io.Serializable

Class holding metadata information for a field in a class representing an object in model.

Author:
Detelin Zlatev
See Also:
Serialized Form

Constructor Summary
FieldDefinition()
          Default constructor
 
Method Summary
 java.lang.String getColumnName()
          Gets the column name that is used to map this field to database.
 FieldConstraints getFieldConstraints()
          Gets the constraints for this field.
 FieldJoinInformation getFieldJoinInformation()
          Gets the join information for this field.
 java.lang.String getFieldName()
          Gets the name of the field.
 java.lang.String getFieldType()
          Gets the field type.
 java.lang.String getGenericType()
          Gets the generic type of the field (if any)
 boolean isPersisted()
          Gets whether the field is persisted.
 boolean isPrimary()
          Gets whether the field is primary.
 boolean isTransientField()
          Gets whether the field is transient.
 boolean isUserExposed()
          Gets whether the field has to be visible by the user.
 void setColumnName(java.lang.String columnName)
          Sets the column name that is used to map this field to database.
 void setFieldConstraints(FieldConstraints fieldConstraints)
          Sets the constraints for this field.
 void setFieldJoinInformation(FieldJoinInformation fieldJoinInformation)
          Sets the join information for this field.
 void setFieldName(java.lang.String fieldName)
          Sets the name of the field.
 void setFieldType(java.lang.String fieldType)
          Sets the field type.
 void setGenericType(java.lang.String genericType)
          Sets the generic type of the field.
 void setPersisted(boolean persisted)
          Sets whether the field is persisted.
 void setPrimary(boolean primary)
          Sets whether the field is primary.
 void setTransientField(boolean transientField)
          Sets whether the field is transient.
 void setUserExposed(boolean userExposed)
          Sets whether the field has to be visible by the user.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldDefinition

public FieldDefinition()
Default constructor

Method Detail

getFieldName

public java.lang.String getFieldName()
Gets the name of the field.

Returns:
field name

setFieldName

public void setFieldName(java.lang.String fieldName)
Sets the name of the field.

Parameters:
fieldName - field name

getFieldType

public java.lang.String getFieldType()
Gets the field type.

Returns:
field type

setFieldType

public void setFieldType(java.lang.String fieldType)
Sets the field type.

Parameters:
fieldType - field type

getGenericType

public java.lang.String getGenericType()
Gets the generic type of the field (if any)

Returns:
generic type

setGenericType

public void setGenericType(java.lang.String genericType)
Sets the generic type of the field.

Parameters:
genericType - generic type

isPrimary

public boolean isPrimary()
Gets whether the field is primary.

Returns:
primary

setPrimary

public void setPrimary(boolean primary)
Sets whether the field is primary.

Parameters:
primary - primary

isPersisted

public boolean isPersisted()
Gets whether the field is persisted.

Returns:
persisted

setPersisted

public void setPersisted(boolean persisted)
Sets whether the field is persisted.

Parameters:
persisted - persisted

isTransientField

public boolean isTransientField()
Gets whether the field is transient.

Returns:
transient.

setTransientField

public void setTransientField(boolean transientField)
Sets whether the field is transient.

Parameters:
transientField - transient

isUserExposed

public boolean isUserExposed()
Gets whether the field has to be visible by the user.

Returns:
exposed

setUserExposed

public void setUserExposed(boolean userExposed)
Sets whether the field has to be visible by the user.

Parameters:
userExposed - exposed

getColumnName

public java.lang.String getColumnName()
Gets the column name that is used to map this field to database.

Returns:
column name

setColumnName

public void setColumnName(java.lang.String columnName)
Sets the column name that is used to map this field to database.

Parameters:
columnName - column name

getFieldConstraints

public FieldConstraints getFieldConstraints()
Gets the constraints for this field.

Returns:
constraints

setFieldConstraints

public void setFieldConstraints(FieldConstraints fieldConstraints)
Sets the constraints for this field.

Parameters:
fieldConstraints - constraints

getFieldJoinInformation

public FieldJoinInformation getFieldJoinInformation()
Gets the join information for this field.

Returns:
join information

setFieldJoinInformation

public void setFieldJoinInformation(FieldJoinInformation fieldJoinInformation)
Sets the join information for this field.

Parameters:
fieldJoinInformation - join information

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2010 Detelin Zlatev. All Rights Reserved.