com.openexchange.api
Class OXLink
java.lang.Object
com.openexchange.api.OXObject
com.openexchange.api.OXSqlObject
com.openexchange.api.OXLink
- All Implemented Interfaces:
- java.lang.Cloneable
- public class OXLink
- extends OXSqlObject
OXAttachment
- Author:
- Sebastian Kauss
Method Summary |
OXObject |
create(java.lang.Object internalobject)
|
static OXLink |
createOXLink()
|
void |
delete()
delete the OXObject
the OXObject have to contain the name "object_id" with the speciefied ID to delete |
OXSearchQuery |
getSearchQuery()
|
void |
load()
load the OXObject |
void |
reset()
set the object to the default values |
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 |
Methods inherited from class com.openexchange.api.OXSqlObject |
canDelete, canRead, canWrite, clone, destroy, getNext, getSQL_ORDER, getSQL_SELECT, getSQL_WHERE, getSQL, insert, load, setSQL_ORDER, setSQL_WHERE, setSQL |
Methods inherited from class com.openexchange.api.OXObject |
contains, get, getConnection, getCreationTime, getInternalFieldname, getLastModified, getMandatoryFields, getMappedField, getObjectID, getPassword, getReadableFields, getUser, getWriteableFields, isNull, iterator, put, remove, set, setInternalObject, setObjectID, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
create
public OXObject create(java.lang.Object internalobject)
createOXLink
public static OXLink createOXLink()
load
public void load()
throws java.lang.Exception,
OXConflictException,
OXPermissionException
- Description copied from class:
OXObject
- load the OXObject
- Specified by:
load
in class OXSqlObject
- Throws:
java.lang.Exception
OXConflictException
OXPermissionException
getSearchQuery
public OXSearchQuery getSearchQuery()
- Specified by:
getSearchQuery
in class OXSqlObject
save
public void save()
throws java.lang.Exception,
OXConflictException,
OXMandatoryFieldException
- Description copied from class:
OXObject
- 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
- Specified by:
save
in class OXSqlObject
- Throws:
java.lang.Exception
OXConflictException
OXMandatoryFieldException
delete
public void delete()
throws java.lang.Exception,
OXConflictException
- Description copied from class:
OXObject
- delete the OXObject
the OXObject have to contain the name "object_id" with the speciefied ID to delete
- Specified by:
delete
in class OXObject
- Returns:
- true if delete was successful
- Throws:
java.lang.Exception
OXConflictException
reset
public void reset()
- Description copied from class:
OXSqlObject
- set the object to the default values
- Overrides:
reset
in class OXSqlObject