butler.sql.metadata
Class StringDatatype.StringLikeDatatype

java.lang.Object
  extended by butler.sql.metadata.DefaultDatatype
      extended by butler.sql.metadata.StringDatatype
          extended by butler.sql.metadata.StringDatatype.StringLikeDatatype
All Implemented Interfaces:
Datatype
Enclosing class:
StringDatatype

public static class StringDatatype.StringLikeDatatype
extends StringDatatype


Nested Class Summary
 
Nested classes/interfaces inherited from class butler.sql.metadata.StringDatatype
StringDatatype.StringLikeDatatype
 
Field Summary
 
Fields inherited from class butler.sql.metadata.StringDatatype
_maxLength, _minLength, _partialRegex, _regex
 
Constructor Summary
StringDatatype.StringLikeDatatype(int minLength, int maxLength, java.lang.String regex, java.lang.String partialRegex)
           
 
Method Summary
 java.lang.Object obj2db(java.lang.Object obj)
          Converts from java object format to database format.
 
Methods inherited from class butler.sql.metadata.StringDatatype
db2obj, format, getDatatype, getJavaClass, getLikeDatatype, getMaxLength, getMinLength, getPartialRegex, getRegex, getSize, getType, isTrim, isTruncate, parseStringDatatype, setTrim, setTruncate, toXML, validate, xml2obj
 
Methods inherited from class butler.sql.metadata.DefaultDatatype
getDecimalDigits, getFormat, getInstance, getMaskFormatter, getOperators, obj2xml, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDatatype.StringLikeDatatype

public StringDatatype.StringLikeDatatype(int minLength,
                                         int maxLength,
                                         java.lang.String regex,
                                         java.lang.String partialRegex)
Method Detail

obj2db

public java.lang.Object obj2db(java.lang.Object obj)
                        throws java.lang.Exception
Description copied from interface: Datatype
Converts from java object format to database format.

Specified by:
obj2db in interface Datatype
Overrides:
obj2db in class StringDatatype
Throws:
java.lang.Exception