|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean org.jboss.dna.common.jdbc.model.spi.UserDefinedTypeBean
public class UserDefinedTypeBean
Provides User Defined Type (UDT) specific metadata. Retrieves a description of the user-defined types (UDTs) defined in a particular schema. Schema-specific UDTs may have type JAVA_OBJECT, STRUCT, or DISTINCT.
Constructor Summary | |
---|---|
UserDefinedTypeBean()
Default constructor |
Method Summary | |
---|---|
void |
addAttribute(Attribute attribute)
adds Attribute |
void |
deleteAttribute(Attribute attribute)
deletes Attribute |
Attribute |
findAttributeByName(String attributeName)
Returns UDT attribute for specified attribute name or null |
Set<Attribute> |
getAttributes()
Gets a set of UDT attributes |
SqlType |
getBaseType()
Gets SQL base type from java.sql.Types. |
String |
getClassName()
Returns JAVA class name for UDT |
SqlType |
getSqlType()
Gets SQL type from java.sql.Types. |
UserDefinedType |
getSuperType()
Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. |
void |
setBaseType(SqlType baseType)
Sets SQL base type from java.sql.Types. |
void |
setClassName(String className)
Sets JAVA class name for UDT |
void |
setSqlType(SqlType sqlType)
Sets SQL type from java.sql.Types. |
void |
setSuperType(UserDefinedType superType)
Sets a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. |
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean |
---|
getCatalog, getSchema, setCatalog, setSchema |
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.SchemaObject |
---|
getCatalog, getSchema, setCatalog, setSchema |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Constructor Detail |
---|
public UserDefinedTypeBean()
Method Detail |
---|
public String getClassName()
getClassName
in interface UserDefinedType
public void setClassName(String className)
setClassName
in interface UserDefinedType
className
- JAVA class name for UDTpublic SqlType getSqlType()
getSqlType
in interface UserDefinedType
public void setSqlType(SqlType sqlType)
setSqlType
in interface UserDefinedType
sqlType
- the SQL type from java.sql.Types. One of JAVA_OBJECT, STRUCT, or DISTINCTpublic SqlType getBaseType()
getBaseType
in interface UserDefinedType
public void setBaseType(SqlType baseType)
setBaseType
in interface UserDefinedType
baseType
- the SQL base type from java.sql.Types.public Set<Attribute> getAttributes()
getAttributes
in interface UserDefinedType
public void addAttribute(Attribute attribute)
addAttribute
in interface UserDefinedType
attribute
- the Attributepublic void deleteAttribute(Attribute attribute)
deleteAttribute
in interface UserDefinedType
attribute
- the Attributepublic Attribute findAttributeByName(String attributeName)
findAttributeByName
in interface UserDefinedType
attributeName
- the name of attribute
public UserDefinedType getSuperType()
getSuperType
in interface UserDefinedType
public void setSuperType(UserDefinedType superType)
setSuperType
in interface UserDefinedType
superType
- the super type for this UDT if any
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |