Skip navigation links


com.essbase.eas.essbase.defs
Class DefaultNamedObject

java.lang.Object
  extended by com.essbase.eas.essbase.defs.DefaultNamedObject

All Implemented Interfaces:
NamedObject
Direct Known Subclasses:
DefaultAliasTableFileObject, DefaultCalcScript, DefaultCSVFileObject, DefaultExcelFileObject, DefaultFilter, DefaultLotusFileObject, DefaultOutlineFileObject, DefaultPartitionDefinition, DefaultReportScript, DefaultRulesObject, DefaultTextFileObject

public class DefaultNamedObject
extends java.lang.Object
implements NamedObject

Default implementation of an Essbase named objects.

Version:
1.00, 01/22/2001
Author:
Hank Cox

Field Summary
protected  long fileSize
           
protected  java.util.Calendar lastUpdate
           
protected  java.util.List listeners
           
protected  boolean locked
           
protected  java.lang.String lockedBy
           
protected  java.lang.String name
           
protected  java.lang.String namedType
           
protected  int objType
           
protected  java.lang.Object owner
           
protected  boolean requiresDatabase
           
protected  java.lang.String text
           
protected  java.util.Calendar whenLocked
           

 

Constructor Summary
DefaultNamedObject()
           

 

Method Summary
 void addListener(NamedObjectListener l)
          adds a listener to this object's list of listeners.
protected  void fireDeleteEvent()
           
protected  void fireRenamedEvent()
           
 Application getApplication()
           
 java.lang.String getAsText()
          implementation of the NamedObject.getAsText() method.
 long getFileSize()
          implementation of the NamedObject.getFileSize() method.
 java.util.Calendar getLastUpdate()
          implementation of the NamedObject.getLastUpdated() method.
 boolean getLocked()
          implementation of the NamedObject.getLocked() method.
 java.lang.String getLockedBy()
          implementation of the NamedObject.getLockedBy() method.
 java.lang.String getName()
          implementation of the NamedObject.getName() method.
 java.lang.String getNamedType()
          implementation of the NamedObject.getNamedType() method.
 java.lang.Object getOwner()
          implementation of the NamedObject.getOwner() method.
 Application getOwnerAsApplication()
          implementation of the NamedObject.getOwnerAsApplication() method.
 Database getOwnerAsDatabase()
          implementation of the NamedObject.getOwnerAsDatabase() method.
 Server getOwnerServer()
          implementation of the NamedObject.getOwnerServer() method.
 boolean getRequiresDatabase()
          implementation of the NamedObject.getRequiresDatabase() method.
 NamedObjectType getType()
          implementation of the NamedObject.getType() method.
 java.util.Calendar getWhenLocked()
          implementation of the NamedObject.getWhenLocked() method.
 void removeListener(NamedObjectListener l)
          removes a listener from this object's list of listeners.
 void setFileSize(long value)
          implementation of the NamedObject.setFileSize() method.
 void setLastUpdate(java.util.Calendar value)
          implementation of the NamedObject.setLastLocked() method.
 void setLocked(boolean value)
          implementation of the NamedObject.setLocked() method.
 void setLockedBy(java.lang.String value)
          implementation of the NamedObject.setLockedBy() method.
 void setName(java.lang.String value)
          implementation of the NamedObject.setName() method
 void setOwner(java.lang.Object value)
          implementation of the NamedObject.setOwner() method.
 void setText(java.lang.String value)
          implementation of the NamedObject.setText() method.
 void setWhenLocked(java.util.Calendar value)
          implementation of the NamedObject.setWhenLocked() method.
 java.lang.String toString()
          override of Object.toString() to permit these objects to be compared by the default Collator object.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

owner

protected java.lang.Object owner

name

protected java.lang.String name

requiresDatabase

protected boolean requiresDatabase

fileSize

protected long fileSize

locked

protected boolean locked

lockedBy

protected java.lang.String lockedBy

whenLocked

protected java.util.Calendar whenLocked

lastUpdate

protected java.util.Calendar lastUpdate

text

protected java.lang.String text

namedType

protected java.lang.String namedType

objType

protected int objType

listeners

protected java.util.List listeners

Constructor Detail

DefaultNamedObject

public DefaultNamedObject()

Method Detail

getOwner

public java.lang.Object getOwner()
implementation of the NamedObject.getOwner() method.
Specified by:
getOwner in interface NamedObject

setOwner

public void setOwner(java.lang.Object value)
implementation of the NamedObject.setOwner() method.
Specified by:
setOwner in interface NamedObject

getOwnerServer

public Server getOwnerServer()
implementation of the NamedObject.getOwnerServer() method.
Specified by:
getOwnerServer in interface NamedObject

getOwnerAsApplication

public Application getOwnerAsApplication()
implementation of the NamedObject.getOwnerAsApplication() method.
Specified by:
getOwnerAsApplication in interface NamedObject

getApplication

public Application getApplication()

getOwnerAsDatabase

public Database getOwnerAsDatabase()
implementation of the NamedObject.getOwnerAsDatabase() method.
Specified by:
getOwnerAsDatabase in interface NamedObject

getName

public java.lang.String getName()
implementation of the NamedObject.getName() method.
Specified by:
getName in interface NamedObject

setName

public void setName(java.lang.String value)
implementation of the NamedObject.setName() method
Specified by:
setName in interface NamedObject

getRequiresDatabase

public boolean getRequiresDatabase()
implementation of the NamedObject.getRequiresDatabase() method.
Specified by:
getRequiresDatabase in interface NamedObject

getFileSize

public long getFileSize()
implementation of the NamedObject.getFileSize() method.
Specified by:
getFileSize in interface NamedObject

setFileSize

public void setFileSize(long value)
implementation of the NamedObject.setFileSize() method.
Specified by:
setFileSize in interface NamedObject

getLocked

public boolean getLocked()
implementation of the NamedObject.getLocked() method.
Specified by:
getLocked in interface NamedObject

setLocked

public void setLocked(boolean value)
implementation of the NamedObject.setLocked() method.
Specified by:
setLocked in interface NamedObject

getLockedBy

public java.lang.String getLockedBy()
implementation of the NamedObject.getLockedBy() method.
Specified by:
getLockedBy in interface NamedObject

setLockedBy

public void setLockedBy(java.lang.String value)
implementation of the NamedObject.setLockedBy() method.
Specified by:
setLockedBy in interface NamedObject

getWhenLocked

public java.util.Calendar getWhenLocked()
implementation of the NamedObject.getWhenLocked() method.
Specified by:
getWhenLocked in interface NamedObject

setWhenLocked

public void setWhenLocked(java.util.Calendar value)
implementation of the NamedObject.setWhenLocked() method.
Specified by:
setWhenLocked in interface NamedObject

getLastUpdate

public java.util.Calendar getLastUpdate()
implementation of the NamedObject.getLastUpdated() method.
Specified by:
getLastUpdate in interface NamedObject

setLastUpdate

public void setLastUpdate(java.util.Calendar value)
implementation of the NamedObject.setLastLocked() method.
Specified by:
setLastUpdate in interface NamedObject

getAsText

public java.lang.String getAsText()
implementation of the NamedObject.getAsText() method.
Specified by:
getAsText in interface NamedObject

setText

public void setText(java.lang.String value)
implementation of the NamedObject.setText() method.
Specified by:
setText in interface NamedObject

getNamedType

public java.lang.String getNamedType()
implementation of the NamedObject.getNamedType() method.
Specified by:
getNamedType in interface NamedObject

getType

public NamedObjectType getType()
implementation of the NamedObject.getType() method.
Specified by:
getType in interface NamedObject

toString

public java.lang.String toString()
override of Object.toString() to permit these objects to be compared by the default Collator object.
Overrides:
toString in class java.lang.Object

addListener

public void addListener(NamedObjectListener l)
adds a listener to this object's list of listeners.
Specified by:
addListener in interface NamedObject

removeListener

public void removeListener(NamedObjectListener l)
removes a listener from this object's list of listeners.
Specified by:
removeListener in interface NamedObject

fireRenamedEvent

protected void fireRenamedEvent()

fireDeleteEvent

protected void fireDeleteEvent()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.