Class MetaCast
java.lang.Object
org.pgcodekeeper.core.database.base.schema.meta.MetaStatement
org.pgcodekeeper.core.database.base.schema.meta.MetaCast
- All Implemented Interfaces:
Serializable,ICast,IStatement
Represents a database cast metadata object.
Stores information about type casting operations including source and target types
and the casting context (IMPLICIT, ASSIGNMENT, or EXPLICIT).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pgcodekeeper.core.database.api.schema.ICast
ICast.CastContext -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMetaCast(String source, String target, ICast.CastContext context) Creates a new cast metadata object.MetaCast(String source, String target, ICast.CastContext context, ObjectLocation object) Creates a new cast metadata object with location information. -
Method Summary
Modifier and TypeMethodDescriptionGets the context in which this cast can be invoked.Gets the source type of the cast.Gets the target type of the cast.Methods inherited from class org.pgcodekeeper.core.database.base.schema.meta.MetaStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDatabase, getDependencies, getDescendants, getDropSQL, getFilePath, getLibName, getLineNumber, getLocation, getName, getObject, getObjectReference, getObjLength, getOffset, getOwner, getParent, getPrivileges, getQualifiedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, hasChildren, isLib, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ICast
toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDatabase, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopy
-
Constructor Details
-
MetaCast
Creates a new cast metadata object.- Parameters:
source- the source data typetarget- the target data typecontext- the casting context
-
MetaCast
Creates a new cast metadata object with location information.- Parameters:
source- the source data typetarget- the target data typecontext- the casting contextobject- the object location information
-
-
Method Details
-
getSource
Description copied from interface:ICastGets the source type of the cast. -
getTarget
Description copied from interface:ICastGets the target type of the cast. -
getContext
Description copied from interface:ICastGets the context in which this cast can be invoked.- Specified by:
getContextin interfaceICast- Returns:
- the cast context
-