Skip navigation links
oracle.javatools.db.datatypes
Class BinaryDataType
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.datatypes.PredefinedDataType
oracle.javatools.db.datatypes.BinaryDataType
- All Implemented Interfaces:
- DataType, DBObject, Copyable, DynamicPropertySet
-
public class BinaryDataType
- extends PredefinedDataType
- Since:
- 10.1.3
Constructor Summary |
BinaryDataType()
|
BinaryDataType(int domain, java.lang.String name)
Use this constructor when the data type is a simple name with no declarable attributes. |
BinaryDataType(int domain, java.lang.String name, long minSize, long maxSize)
Use this constructor when the data type has a maximum size that is used in default value validation, but isn't declarable, e.g. |
BinaryDataType(int domain, java.lang.String name, java.lang.String definition, DataTypeAttribute[] attributes)
Use this constructor when the datatype has declarable attributes. |
BinaryDataType(int domain, java.lang.String name, java.lang.String definition, long minSize, long maxSize, long defaultSize, boolean isSizeMandatory, DataTypeAttribute[] attributes)
Use this constructor when the data type has a declarable maximum size, e.g. |
Method Summary |
void |
validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared size of this binary type. |
Methods inherited from class oracle.javatools.db.datatypes.PredefinedDataType |
addAttribute, addAttribute, copyToImpl, createDefaultUsage, createUsage, createUsage, equalsImpl, getDataTypeAttribute, getDataTypeAttributes, getDDL, getParent, getType, hasDataTypeAttribute, matches, parseDefaultValue, removeAttribute, setDataTypeAttributes, tokenize, validateDefinition, validateUsage |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
BinaryDataType
public BinaryDataType()
BinaryDataType
public BinaryDataType(int domain,
java.lang.String name)
- Use this constructor when the data type is a simple name with no declarable attributes.
- Parameters:
domain
- : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.
name
-
BinaryDataType
public BinaryDataType(int domain,
java.lang.String name,
java.lang.String definition,
DataTypeAttribute[] attributes)
- Use this constructor when the datatype has declarable attributes.
- Parameters:
domain
- : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.
name
-
definition
-
attributes
- : Definitions of the data type's attributes
BinaryDataType
public BinaryDataType(int domain,
java.lang.String name,
long minSize,
long maxSize)
- Use this constructor when the data type has a maximum size that is used in default value validation, but isn't declarable, e.g. MySQL LONGBLOB
- Parameters:
domain
- : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.
name
- : data type name
minSize
- : the minimum size of the data type (usually 1 but may be 0)
maxSize
- : the maximum size of the data type
BinaryDataType
public BinaryDataType(int domain,
java.lang.String name,
java.lang.String definition,
long minSize,
long maxSize,
long defaultSize,
boolean isSizeMandatory,
DataTypeAttribute[] attributes)
- Use this constructor when the data type has a declarable maximum size, e.g. MySQL BINARY(<size>). Add additional attributes with the attributes parameter.
- Parameters:
domain
- : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.
name
- : data type name
definition
-
minSize
- : the minimum size of the data type
maxSize
- : the maximum size of the data type
defaultSize
- : size of data type when size is optional and not declared, default size for UI when size is mandatory.
isSizeMandatory
- : TRUE when size has to be declared
attributes
- : Definitions of additional attributes
validateDefaultValue
public void validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DefaultValueValidationException
- Validates defaultValue for dataTypeUsage against the declared size of this binary type.
-
- Specified by:
validateDefaultValue
in interface DataType
- Overrides:
validateDefaultValue
in class PredefinedDataType
-
- Parameters:
dataTypeUsage
- : the usage to be validated
defaultValue
- : the default value
dbObject
- : the context of the data type usage
- Throws:
DefaultValueValidationException
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.