Class DataBaseObject
java.lang.Object
ecmwf.common.database.DataBaseObject
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
Activity
,Alias
,Association
,AuthorizedECUser
,Category
,CatUrl
,ChangeLog
,Country
,DataFile
,DataTransfer
,Destination
,DestinationECUser
,ECSession
,ECtransAccounting
,ECtransDestination
,ECtransHistory
,ECtransModule
,ECUser
,Event
,ExistingStorageDirectory
,Host
,HostECUser
,HostLocation
,HostOutput
,HostStats
,IncomingAssociation
,IncomingHistory
,IncomingPermission
,IncomingPolicy
,IncomingUser
,MetadataAttribute
,MetadataValue
,MonitoringHistory
,MonitoringValue
,MSUser
,Notification
,Operation
,Permission
,PolicyAssociation
,PolicyUser
,Privileged
,ProductStatus
,Publication
,Rates
,Reception
,SchedulerValue
,Spool
,Statistics
,Traffic
,TransferECUser
,TransferGroup
,TransferHistory
,TransferMethod
,TransferModule
,TransferServer
,UploadHistory
,Url
,WebUser
,WeuCat
The Class DataBaseObject.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final Timestamp
bigDecimalToTimestamp
(BigDecimal param) Big decimal to timestamp.clone()
Clone.compare
(DataBaseObject object, boolean mergeOriginalRevised) Compare.static final String
Compare 2 Objects.int
Gets the collection size.protected static final int
integerToInt
(Integer param, int defaultValue) Integer to int.protected static final String
integerToString
(Integer param) Integer to string.void
setCollectionSize
(int collectionSize) Sets the collection size.protected static final String
Strim.protected static final Integer
stringToInteger
(String param) String to integer.protected static final Long
stringToLong
(String param) String to long.protected static final String
stringToString
(String param, String defaultValue) String to string.protected static final BigDecimal
timestampToBigDecimal
(Timestamp param) Timestamp to big decimal.toString()
To string.toString
(boolean onSingleLine) Converts into string.static final String
Converts into string.static final String
Converts into string.
-
Field Details
-
TAG_ACROSS_MULTIPLE_LINES
The Constant TAG_ACROSS_MULTIPLE_LINES.- See Also:
-
TAG_END_OF_LINES
-
collectionSize
protected int collectionSizeThe collection size.
-
-
Constructor Details
-
DataBaseObject
public DataBaseObject()
-
-
Method Details
-
getCollectionSize
public int getCollectionSize()Gets the collection size.- Returns:
- the collection size
-
setCollectionSize
public void setCollectionSize(int collectionSize) Sets the collection size.- Parameters:
collectionSize
- the new collection size
-
clone
-
toString
-
toString
Converts into string.- Parameters:
onSingleLine
- the on single line- Returns:
- the string
-
compare
Compare.- Parameters:
object
- the objectmergeOriginalRevised
- the merge original revised- Returns:
- the string
-
toString
-
toString
-
compare
-
strim
-
integerToString
-
stringToInteger
-
stringToLong
-
integerToInt
Integer to int.- Parameters:
param
- the paramdefaultValue
- the default value- Returns:
- the int
-
stringToString
-
bigDecimalToTimestamp
Big decimal to timestamp.- Parameters:
param
- the param- Returns:
- the timestamp
-
timestampToBigDecimal
Timestamp to big decimal.- Parameters:
param
- the param- Returns:
- the big decimal
-