com.openexchange.api
Class OXLink

java.lang.Object
  extended by com.openexchange.api.OXObject
      extended by com.openexchange.api.OXSqlObject
          extended by com.openexchange.api.OXLink
All Implemented Interfaces:
java.lang.Cloneable

public class OXLink
extends OXSqlObject

OXAttachment

Author:
Sebastian Kauss

Field Summary
 
Fields inherited from class com.openexchange.api.OXSqlObject
DELETED, NEW_AND_MODIFIED
 
Fields inherited from class com.openexchange.api.OXObject
CREATION_TIME, LAST_MODIFIED, OBJECT_ID
 
Method Summary
 OXObject create(java.lang.Object internalobject)
          returns a new instance of the OXObject
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
 

Method Detail

create

public OXObject create(java.lang.Object internalobject)
Description copied from class: OXObject
returns a new instance of the OXObject


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
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