public abstract class AssoDataObjectForPrep extends AssoDataObject
changeLogger, columnNames, columnType, htColumnType, INSERTMODE, maxFieldSize, original, UPDATEMODE
Constructor and Description |
---|
AssoDataObjectForPrep(java.sql.Connection newDbConnection,
java.lang.String stmtString)
Constructs a new association data object.
|
AssoDataObjectForPrep(DataObjectConstructionDetails dataObjectConstructionDetails,
java.lang.String stmtString)
Constructs a new DataObject with the specified DB connection details.
|
AssoDataObjectForPrep(GlobalStd global,
java.lang.String stmtString)
Constructs a new association data object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
discardStatements()
Discard prepared statements, e.g. to force new creation due to underlying connection has been closed.
|
protected java.sql.PreparedStatement |
getIsLinkedStatement() |
boolean |
isLinked(Identifier id1,
Identifier id2)
Returns true of ID 1 is linked with ID 2.
|
getConnection
addDataChangeListener, addDataSelectionListener, alertBadUniqueKey, allocateNewIdentifier, checkRecoverConnection, closeIfExists, closePreparedStatementsForWhereCondition, closeQuery, commitIfNotAutoCommit, contains, contains, contains, contains, contains, contains, count, count, count, count, count, count, countThrowException, delete, delete, deleteFreeConditioned, deleteFreeConditioned, deleteFreeConditionedAndCount, ensureMetaDataIsAvailableForAllColumns, finalize, fireDataChanged, free, getBoolean, getBoolean, getBytes, getColumnCount, getColumnLabel, getColumnLength, getColumnName, getColumnName, getColumnScale, getColumnType, getColumnType, getColumnType, getColumnType, getDate, getDate, getDate, getDateFormattedWithShortYear, getDeletionHindrance, getDescription, getDescription, getDouble, getDouble, getEntityId, getFailedQueryExpression, getFloat, getGlobalWhereCondition, getGlobalWhereCondition, getIdentifier, getIdentifyTemplate, getIdentifyValueInt, getIdentifyWhereCondition, getIdManager, getInt, getInt, getIntAsStringZeroSuppressed, getKeyExtendedFieldSelection, getLastException, getLoadException, getLong, getmaxRow, getMode, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getNbrOfFittingItems, getObject, getOriginalOf, getQueryException, getRecordingDate, getRecordingUser, getRowCount, getSqlCompareString, getSqlCompareString, getText, getText, getTextNoMatterWhatTypeOfColumn, getTime, getTimestamp, getUniqueKeyName, getWorkedOnBoolean, getWorkedOnDate, getWorkedOnDouble, getWorkedOnInt, getWorkedOnOf, getWorkedOnText, getWorkedOnText, getWorkedOnTime, getWorkedOnTimestamp, insert, isAvailable, isAvailable, isAvailable, isColumnContained, isColumnToUseForGlobalSearch, isDeletionAllowed, isKnownAsBoolean, isMemo, isModified, isModifiedColumn, isQueryFindingRecords, isQueryFindingRecords, load, load, load, load, load, load, load, loadColumns, loadFirst, logDebug, logError, logError, logError, logInfo, newRow, newRowWithNextIdentifierAllocation, nextColumn, nextRow, openQuery, openQueryThrowException, register, removeDataChangeListener, removeDataSelectionListener, resetColumnPointer, rollbackIfNotAutoCommit, save, save, save, searchGlobal, searchGlobal, select, select, select, select, select, select, select, select, select, select, select, select, select, select, selectForStreaming, setBoolean, setChangeLog, setChangeLogger, setColumnNameOfRecordingDate, setConnection, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setIdentifier, setIdentityValue, setIdentityValue, setIdentityValue, setIdInclOriginal, setIdManager, setInt, setInt, setLong, setNoLogging, setObject, setReadBigDecimalAsInt, setRecordingUser, setRecordingUser, setSilentUpdate, setText, setText, setTime, setTimestamp, sqlExceptionConsequences, sqlSecure, unifyColumnName, unifyColumnNameForHashMapKey, unifyTableName, update, updateIdentifier, updateOrInsert, updateOrInsert
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
link, unlink
getAttributes, getForeignKeys, getIndices, getTableName
public AssoDataObjectForPrep(GlobalStd global, java.lang.String stmtString)
global
- the global parameters to passstmtString
- the string to use to build the prepared statement to check if IDs are linked.public AssoDataObjectForPrep(DataObjectConstructionDetails dataObjectConstructionDetails, java.lang.String stmtString)
dataObjectConstructionDetails
- the DB connection details to usestmtString
- the string to use to build the prepared statement.public AssoDataObjectForPrep(java.sql.Connection newDbConnection, java.lang.String stmtString)
newDbConnection
- the connection to usestmtString
- the string to use to build the prepared statement.protected java.sql.PreparedStatement getIsLinkedStatement() throws java.sql.SQLException
java.sql.SQLException
public boolean isLinked(Identifier id1, Identifier id2)
id1
- the primary key of the ownerid2
- the primary key of the associated entity
return true if the relationship existsprotected void discardStatements()
DataObject
discardStatements
in class DataObject
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de