|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.api.OXObject
OXObject
Field Summary | |
static java.lang.String |
CREATION_TIME
|
static java.lang.String |
LAST_MODIFIED
|
static java.lang.String |
OBJECT_ID
|
Constructor Summary | |
OXObject()
|
Method Summary | |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.String name)
returns true if a mapping for this name exists |
abstract void |
delete()
delete the OXObject the OXObject have to contain the name "object_id" with the speciefied ID to delete |
abstract void |
destroy()
destroys this OXObject |
java.lang.Object |
get(java.lang.String name)
return the value to which the specified name is mapped, or null if there is no mapping for this name |
java.sql.Connection |
getConnection()
return the Connection and null if no connection was set |
java.util.Date |
getCreationTime()
return the creation time |
java.lang.String |
getInternalFieldname(java.lang.String name)
returns the internal name of the used fields or null |
java.util.Date |
getLastModified()
return the last modified |
java.util.ArrayList |
getMandatoryFields()
return an ArrayList with all mandatory fields for this OXObject |
java.lang.String |
getMappedField(java.lang.String s)
|
abstract boolean |
getNext()
return true if an next object exists |
int |
getObjectID()
return object_id |
java.lang.String |
getPassword()
return the password and null of no password was set |
java.util.ArrayList |
getReadableFields()
return an ArrayList with all readable fields for this OXObject |
java.lang.String |
getUser()
return the loginname and null if no loginname was set |
java.util.ArrayList |
getWriteableFields()
return an ArrayList with all writedable fields for this OXObject |
boolean |
isNull(java.lang.String name)
returns true the value of the mapped name is null otherwise false |
java.util.Iterator |
iterator()
return an Iterator with all keys in the OXObject |
abstract void |
load()
load the OXObject |
void |
put(java.lang.String name,
java.lang.Object value)
Associates the specified value with the specified name |
void |
remove(java.lang.String name)
removes the mapping for this key |
abstract void |
reset()
set the OXObject to the default values |
abstract void |
save()
saves the OXObject with the specified values if the OXObject not contains the name "object_id" this method tries to perform an insert if the OXObject contains the name "object_id" this methods tries to perform an update |
void |
set(java.lang.String name,
java.lang.Object value)
Associates the specified value with the specified name |
void |
setInternalObject(java.lang.Object o)
set an internal object |
void |
setObjectID(int object_id)
set the object id |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CREATION_TIME
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String OBJECT_ID
Constructor Detail |
public OXObject()
Method Detail |
public java.lang.String getUser()
public java.lang.String getPassword()
public java.sql.Connection getConnection()
public java.util.Date getCreationTime()
public java.util.Date getLastModified()
public int getObjectID()
public void setObjectID(int object_id)
public java.lang.Object get(java.lang.String name)
name
-
public void set(java.lang.String name, java.lang.Object value)
name
- value
- public void put(java.lang.String name, java.lang.Object value)
name
- value
- public boolean contains(java.lang.String name)
name
-
public boolean isNull(java.lang.String name)
name
-
public void remove(java.lang.String name)
name
- public java.util.Iterator iterator()
public java.util.ArrayList getReadableFields()
public java.util.ArrayList getWriteableFields()
public java.util.ArrayList getMandatoryFields()
public abstract boolean getNext() throws java.lang.Exception
java.lang.Exception
public abstract void load() throws java.lang.Exception, OXConflictException, OXPermissionException
java.lang.Exception
OXConflictException
OXPermissionException
public abstract void save() throws java.lang.Exception, OXConflictException, OXMandatoryFieldException, OXPermissionException
java.lang.Exception
OXConflictException
OXMandatoryFieldException
OXPermissionException
public abstract void delete() throws java.lang.Exception, OXConflictException, OXMandatoryFieldException, OXPermissionException
java.lang.Exception
OXConflictException
OXMandatoryFieldException
OXPermissionException
public abstract void destroy()
public abstract void reset() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMappedField(java.lang.String s)
public void setInternalObject(java.lang.Object o)
public java.lang.String getInternalFieldname(java.lang.String name)
public java.lang.String toString()
public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |