org.springframework.roo.classpath.operations.jsr303
Class DateField

java.lang.Object
  extended by org.springframework.roo.classpath.operations.jsr303.FieldDetails
      extended by org.springframework.roo.classpath.operations.jsr303.DateField

public class DateField
extends FieldDetails

This field can optionally provide the mandatory JSR 220 temporal annotation.

Since:
1.0
Author:
Ben Alex

Field Summary
 
Fields inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails
comment
 
Constructor Summary
DateField(String physicalTypeIdentifier, org.springframework.roo.model.JavaType fieldType, org.springframework.roo.model.JavaSymbolName fieldName)
           
 
Method Summary
 void decorateAnnotationsList(List<AnnotationMetadata> annotations)
           
 DateTime getDateFormat()
           
 DateFieldPersistenceType getPersistenceType()
           
 DateTime getTimeFormat()
           
 boolean isFuture()
           
 boolean isPast()
           
 void setDateFormat(DateTime dateFormat)
           
 void setFuture(boolean future)
           
 void setPast(boolean past)
           
 void setPersistenceType(DateFieldPersistenceType persistenceType)
           
 void setTimeFormat(DateTime timeFormat)
           
 
Methods inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails
getColumn, getComment, getFieldName, getFieldType, getPhysicalTypeIdentifier, isNotNull, isNullRequired, setColumn, setComment, setNotNull, setNullRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateField

public DateField(String physicalTypeIdentifier,
                 org.springframework.roo.model.JavaType fieldType,
                 org.springframework.roo.model.JavaSymbolName fieldName)
Method Detail

decorateAnnotationsList

public void decorateAnnotationsList(List<AnnotationMetadata> annotations)
Overrides:
decorateAnnotationsList in class FieldDetails

isPast

public boolean isPast()

setPast

public void setPast(boolean past)

isFuture

public boolean isFuture()

setFuture

public void setFuture(boolean future)

getPersistenceType

public DateFieldPersistenceType getPersistenceType()

setPersistenceType

public void setPersistenceType(DateFieldPersistenceType persistenceType)

getDateFormat

public DateTime getDateFormat()

setDateFormat

public void setDateFormat(DateTime dateFormat)

getTimeFormat

public DateTime getTimeFormat()

setTimeFormat

public void setTimeFormat(DateTime timeFormat)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.