|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDatabaseField
org.eclipse.persistence.mappings.structures.ObjectRelationalDatabaseField
public class ObjectRelationalDatabaseField
INTERNAL: A database field of object-relational type: either a java.sql.Array, java.sql.Struct, or java.sql.Ref. Oracle drivers require the user defined field type name for these fields, along with the generic sqlType: ARRAY, STRUCT, or REF. Toplink can only recognize primitive field types like Integer or String, but here custom java objects are being written to a single field. Thus instead of DatabaseField#type the driver needs a string representing the user defined type of the structure on the database, and the type of field: either ARRAY, STRUCT, or REF. Added for bug 2730536.
Field Summary | |
---|---|
protected DatabaseField |
nestedTypeField
|
protected java.lang.String |
sqlTypeName
|
Constructor Summary | |
---|---|
ObjectRelationalDatabaseField(DatabaseField field)
|
Method Summary | |
---|---|
DatabaseField |
getNestedTypeField()
ADVANCED: For ARRAY fields, this field's type represents the type contained in the ARRAY. |
java.lang.String |
getSqlTypeName()
ADVANCED: For ARRAY and STRUCT fields, this is the user defined type for the field. |
boolean |
isObjectRelationalDatabaseField()
PUBLIC: Return if this is an ObjectRelationalDatabaseField. |
void |
setNestedTypeField(DatabaseField nestedTypeField)
ADVANCED: For ARRAY fields, this field's type represents the type contained in the ARRAY. |
void |
setSqlTypeName(java.lang.String sqlTypeName)
ADVANCED: For ARRAY and STRUCT fields, this is the user defined type for the field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String sqlTypeName
protected DatabaseField nestedTypeField
Constructor Detail |
---|
public ObjectRelationalDatabaseField(DatabaseField field)
Method Detail |
---|
public java.lang.String getSqlTypeName()
public boolean isObjectRelationalDatabaseField()
public void setSqlTypeName(java.lang.String sqlTypeName)
public DatabaseField getNestedTypeField()
public void setNestedTypeField(DatabaseField nestedTypeField)
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |