org.jcoderz.phoenix.sqlparser
Class SpecialColumnComment

java.lang.Object
  extended by org.jcoderz.phoenix.sqlparser.SpecialColumnComment

public class SpecialColumnComment
extends Object

This class represents a special comment in the following form -- &cmpgen.java-type org.jcoderz.ipp.Msisdn -- &cmpgen.storeMethod="toString()" -- &cmpgen.loadMethod="fromString(java.lang.String)".

Author:
Albrecht Messner

Constructor Summary
SpecialColumnComment()
           
 
Method Summary
 String getCurrencyColumn()
          Returns the currency column.
 String getJavaType()
          Returns the java type.
 String getLoadMethod()
          Returns the load method.
 String getPeriodEndDateColumn()
          Returns the end date column.
 String getPeriodFieldName()
          Returns the period field name.
 String getStoreMethod()
          Returns the store method.
 String getWeblogicColumnType()
           
 boolean isSetCurrencyColumn()
          Check whether the field mCurrencyColumn has been set.
 boolean isSetJavaType()
          Check whether the field mJavaType has been set.
 boolean isSetLoadMethod()
          Check whether the field mLoadMethod has been set.
 boolean isSetPeriodEndDateColumn()
          Check whether the field mPeriodEndDateColumn has been set.
 boolean isSetPeriodFieldName()
          Check whether the field mPeriodFieldName has been set.
 boolean isSetStoreMethod()
          Check whether the field mStoreMethod has been set.
 boolean isSetWeblogicColumnType()
           
 boolean isSkipInInterface()
           
 void parseComment(Token t)
          Parse a special comment.
 String toString()
          
 void validate()
          Check whether all required fields have been set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpecialColumnComment

public SpecialColumnComment()
Method Detail

toString

public final String toString()

Overrides:
toString in class Object

parseComment

public final void parseComment(Token t)
                        throws ParseException
Parse a special comment.

Parameters:
t - the token to parse
Throws:
ParseException - if the comment has a syntax error

getPeriodFieldName

public final String getPeriodFieldName()
Returns the period field name.

Returns:
the period field name

getPeriodEndDateColumn

public final String getPeriodEndDateColumn()
Returns the end date column.

Returns:
the end date column

getCurrencyColumn

public final String getCurrencyColumn()
Returns the currency column.

Returns:
the currency column

getJavaType

public final String getJavaType()
Returns the java type.

Returns:
the java type

getLoadMethod

public final String getLoadMethod()
Returns the load method.

Returns:
the load method

getStoreMethod

public final String getStoreMethod()
Returns the store method.

Returns:
the store method

validate

public final void validate()
                    throws ParseException
Check whether all required fields have been set.

Throws:
ParseException - if the comment is invalid

isSkipInInterface

public final boolean isSkipInInterface()

isSetJavaType

public final boolean isSetJavaType()
Check whether the field mJavaType has been set.

Returns:
true if the field is not-null, false otherwise

isSetStoreMethod

public final boolean isSetStoreMethod()
Check whether the field mStoreMethod has been set.

Returns:
true if the field is not-null, false otherwise

isSetLoadMethod

public final boolean isSetLoadMethod()
Check whether the field mLoadMethod has been set.

Returns:
true if the field is not-null, false otherwise

isSetCurrencyColumn

public final boolean isSetCurrencyColumn()
Check whether the field mCurrencyColumn has been set.

Returns:
true if the field is not-null, false otherwise

isSetPeriodFieldName

public final boolean isSetPeriodFieldName()
Check whether the field mPeriodFieldName has been set.

Returns:
true if the field is not-null, false otherwise

isSetPeriodEndDateColumn

public final boolean isSetPeriodEndDateColumn()
Check whether the field mPeriodEndDateColumn has been set.

Returns:
true if the field is not-null, false otherwise

getWeblogicColumnType

public String getWeblogicColumnType()

isSetWeblogicColumnType

public boolean isSetWeblogicColumnType()


Copyright 2007 The jCoderZ Project.