public class KettleDatabaseRepositoryConnectionDelegate extends KettleDatabaseRepositoryBaseDelegate
| Modifier and Type | Field and Description |
|---|---|
protected Database |
database |
protected DatabaseMeta |
databaseMeta |
protected static int[] |
KEY_POSITIONS |
static LoggingObjectInterface |
loggingObject |
protected int |
majorVersion |
protected int |
minorVersion |
protected PreparedStatement |
psJobAttributesInsert |
protected PreparedStatement |
psJobAttributesLookup |
protected PreparedStatement |
psStepAttributesInsert |
protected PreparedStatement |
psStepAttributesLookup |
protected PreparedStatement |
pstmt_entry_attributes |
protected PreparedStatement |
psTransAttributesInsert |
protected PreparedStatement |
psTransAttributesLookup |
static int |
REQUIRED_MAJOR_VERSION |
static int |
REQUIRED_MINOR_VERSION |
protected ConcurrentHashMap<String,PreparedStatement> |
sqlMap |
protected List<Object[]> |
stepAttributesBuffer |
protected RowMetaInterface |
stepAttributesRowMeta |
protected boolean |
useBatchProcessing |
log, repository| Constructor and Description |
|---|
KettleDatabaseRepositoryConnectionDelegate(KettleDatabaseRepository repository,
DatabaseMeta databaseMeta) |
quote, quoteTablepublic static final LoggingObjectInterface loggingObject
public static final int REQUIRED_MAJOR_VERSION
public static final int REQUIRED_MINOR_VERSION
protected static final int[] KEY_POSITIONS
protected Database database
protected DatabaseMeta databaseMeta
protected int majorVersion
protected int minorVersion
protected PreparedStatement psStepAttributesLookup
protected PreparedStatement psStepAttributesInsert
protected PreparedStatement psTransAttributesLookup
protected PreparedStatement psTransAttributesInsert
protected PreparedStatement psJobAttributesLookup
protected PreparedStatement psJobAttributesInsert
protected RowMetaInterface stepAttributesRowMeta
protected PreparedStatement pstmt_entry_attributes
protected boolean useBatchProcessing
protected ConcurrentHashMap<String,PreparedStatement> sqlMap
public KettleDatabaseRepositoryConnectionDelegate(KettleDatabaseRepository repository, DatabaseMeta databaseMeta)
public void connect()
throws KettleException
KettleExceptionpublic void connect(boolean no_lookup)
throws KettleException
KettleExceptionpublic void connect(boolean no_lookup,
boolean ignoreVersion)
throws KettleException
KettleExceptionpublic static final String getRequiredVersion()
protected void verifyVersion()
throws KettleException
KettleExceptionpublic void disconnect()
public void setAutoCommit(boolean autocommit)
public void commit()
throws KettleException
KettleExceptionpublic void rollback()
public Database getDatabase()
public void setDatabase(Database database)
database - the database to setpublic DatabaseMeta getDatabaseMeta()
public void setDatabaseMeta(DatabaseMeta databaseMeta)
databaseMeta - the databaseMeta to setpublic int getMajorVersion()
public void setMajorVersion(int majorVersion)
majorVersion - the majorVersion to setpublic int getMinorVersion()
public void setMinorVersion(int minorVersion)
minorVersion - the minorVersion to setpublic String getVersion()
public void fillStepAttributesBuffer(ObjectId id_transformation) throws KettleException
KettleExceptionpublic List<Object[]> getStepAttributesBuffer()
public void setStepAttributesBuffer(List<Object[]> stepAttributesBuffer)
stepAttributesBuffer - The stepAttributesBuffer to set.public void setLookupStepAttribute()
throws KettleException
KettleExceptionpublic void setLookupTransAttribute()
throws KettleException
KettleExceptionpublic void closeTransAttributeLookupPreparedStatement()
throws KettleException
KettleExceptionpublic void setLookupJobAttribute()
throws KettleException
KettleExceptionpublic void closeJobAttributeLookupPreparedStatement()
throws KettleException
KettleExceptionpublic void closeStepAttributeLookupPreparedStatement()
throws KettleException
KettleExceptionpublic void closeStepAttributeInsertPreparedStatement()
throws KettleException
KettleExceptionpublic void closeTransAttributeInsertPreparedStatement()
throws KettleException
KettleExceptionpublic void closeJobAttributeInsertPreparedStatement()
throws KettleException
KettleExceptionpublic RowMetaAndData getTransAttributeRow(ObjectId id_transformation, int nr, String code) throws KettleException
KettleExceptionpublic RowMetaAndData getJobAttributeRow(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic long getStepAttributeInteger(ObjectId id_step, int nr, String code) throws KettleException
KettleExceptionpublic ObjectId findStepAttributeID(ObjectId id_step, int nr, String code) throws KettleException
KettleExceptionpublic String getStepAttributeString(ObjectId id_step, int nr, String code) throws KettleException
KettleExceptionpublic boolean getStepAttributeBoolean(ObjectId id_step, int nr, String code, boolean def) throws KettleException
KettleExceptionpublic ObjectId saveStepAttribute(ObjectId id_transformation, ObjectId id_step, long nr, String code, String value) throws KettleException
KettleExceptionpublic ObjectId saveStepAttribute(ObjectId id_transformation, ObjectId id_step, long nr, String code, double value) throws KettleException
KettleExceptionpublic ObjectId saveStepAttribute(ObjectId id_transformation, ObjectId id_step, long nr, String code, boolean value) throws KettleException
KettleExceptionpublic int countNrStepAttributes(ObjectId id_step, String code) throws KettleException
KettleExceptionpublic String getTransAttributeString(ObjectId id_transformation, int nr, String code) throws KettleException
KettleExceptionpublic boolean getTransAttributeBoolean(ObjectId id_transformation, int nr, String code) throws KettleException
KettleExceptionpublic double getTransAttributeNumber(ObjectId id_transformation, int nr, String code) throws KettleException
KettleExceptionpublic long getTransAttributeInteger(ObjectId id_transformation, int nr, String code) throws KettleException
KettleExceptionpublic int countNrTransAttributes(ObjectId id_transformation, String code) throws KettleException
KettleExceptionpublic List<Object[]> getTransAttributes(ObjectId id_transformation, String code, long nr) throws KettleException
KettleExceptionpublic List<Object[]> getTransAttributesWithPrefix(ObjectId id_transformation, String codePrefix) throws KettleException
KettleExceptionpublic String getJobAttributeString(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic boolean getJobAttributeBoolean(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic double getJobAttributeNumber(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic long getJobAttributeInteger(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic int countNrJobAttributes(ObjectId id_job, String code) throws KettleException
KettleExceptionpublic List<Object[]> getJobAttributes(ObjectId id_job, String code, long nr) throws KettleException
KettleExceptionpublic List<Object[]> getJobAttributesWithPrefix(ObjectId jobId, String codePrefix) throws KettleException
KettleExceptionpublic ObjectId saveJobEntryAttribute(ObjectId id_job, ObjectId id_jobentry, long nr, String code, String value) throws KettleException
KettleExceptionpublic ObjectId saveJobEntryAttribute(ObjectId id_job, ObjectId id_jobentry, long nr, String code, double value) throws KettleException
KettleExceptionpublic ObjectId saveJobEntryAttribute(ObjectId id_job, ObjectId id_jobentry, long nr, String code, boolean value) throws KettleException
KettleExceptionpublic ObjectId insertJobEntryAttribute(ObjectId id_job, ObjectId id_jobentry, long nr, String code, double value_num, String value_str) throws KettleException
KettleExceptionpublic LongObjectId getNextJobEntryAttributeID() throws KettleException
KettleExceptionpublic LongObjectId getNextID(String tableName, String fieldName) throws KettleException
KettleExceptionpublic void setLookupJobEntryAttribute()
throws KettleException
KettleExceptionpublic void closeLookupJobEntryAttribute()
throws KettleException
KettleExceptionpublic long getJobEntryAttributeInteger(ObjectId id_jobentry, int nr, String code) throws KettleException
KettleExceptionpublic double getJobEntryAttributeNumber(ObjectId id_jobentry, int nr, String code) throws KettleException
KettleExceptionpublic String getJobEntryAttributeString(ObjectId id_jobentry, int nr, String code) throws KettleException
KettleExceptionpublic boolean getJobEntryAttributeBoolean(ObjectId id_jobentry, int nr, String code, boolean def) throws KettleException
KettleExceptionpublic int countNrJobEntryAttributes(ObjectId id_jobentry, String code) throws KettleException
KettleExceptionpublic List<Object[]> getJobEntryAttributesWithPrefix(ObjectId jobId, ObjectId jobEntryId, String codePrefix) throws KettleException
KettleExceptionpublic ObjectId getNextTransformationID() throws KettleException
KettleExceptionpublic ObjectId getNextJobID() throws KettleException
KettleExceptionpublic ObjectId getNextNoteID() throws KettleException
KettleExceptionpublic ObjectId getNextLogID() throws KettleException
KettleExceptionpublic ObjectId getNextDatabaseID() throws KettleException
KettleExceptionpublic ObjectId getNextDatabaseTypeID() throws KettleException
KettleExceptionpublic ObjectId getNextDatabaseConnectionTypeID() throws KettleException
KettleExceptionpublic ObjectId getNextLoglevelID() throws KettleException
KettleExceptionpublic ObjectId getNextStepTypeID() throws KettleException
KettleExceptionpublic ObjectId getNextStepID() throws KettleException
KettleExceptionpublic ObjectId getNextJobEntryID() throws KettleException
KettleExceptionpublic ObjectId getNextJobEntryTypeID() throws KettleException
KettleExceptionpublic LongObjectId getNextJobEntryCopyID() throws KettleException
KettleExceptionpublic LongObjectId getNextStepAttributeID() throws KettleException
KettleExceptionpublic LongObjectId getNextTransAttributeID() throws KettleException
KettleExceptionpublic LongObjectId getNextJobAttributeID() throws KettleException
KettleExceptionpublic LongObjectId getNextDatabaseAttributeID() throws KettleException
KettleExceptionpublic ObjectId getNextTransHopID() throws KettleException
KettleExceptionpublic ObjectId getNextJobHopID() throws KettleException
KettleExceptionpublic ObjectId getNextDepencencyID() throws KettleException
KettleExceptionpublic ObjectId getNextPartitionSchemaID() throws KettleException
KettleExceptionpublic ObjectId getNextPartitionID() throws KettleException
KettleExceptionpublic ObjectId getNextTransformationPartitionSchemaID() throws KettleException
KettleExceptionpublic ObjectId getNextClusterID() throws KettleException
KettleExceptionpublic ObjectId getNextSlaveServerID() throws KettleException
KettleExceptionpublic ObjectId getNextClusterSlaveID() throws KettleException
KettleExceptionpublic ObjectId getNextTransformationSlaveID() throws KettleException
KettleExceptionpublic ObjectId getNextTransformationClusterID() throws KettleException
KettleExceptionpublic ObjectId getNextConditionID() throws KettleException
KettleExceptionpublic ObjectId getNextValueID() throws KettleException
KettleExceptionpublic ObjectId getNextUserID() throws KettleException
KettleExceptionpublic void clearNextIDCounters()
public ObjectId getNextDirectoryID() throws KettleException
KettleExceptionpublic ObjectId insertStepAttribute(ObjectId id_transformation, ObjectId id_step, long nr, String code, double value_num, String value_str) throws KettleException
KettleExceptionpublic ObjectId insertTransAttribute(ObjectId id_transformation, long nr, String code, long value_num, String value_str) throws KettleException
KettleExceptionpublic ObjectId insertJobAttribute(ObjectId id_job, long nr, String code, long value_num, String value_str) throws KettleException
KettleExceptionpublic void updateTableRow(String tablename, String idfield, RowMetaAndData values, ObjectId id) throws KettleException
KettleExceptionpublic void updateTableRow(String tablename, String idfield, RowMetaAndData values) throws KettleException
KettleExceptionpublic List<RepositoryElementMetaInterface> getRepositoryObjects(String tableName, RepositoryObjectType objectType, ObjectId id_directory) throws KettleException
id_directory - KettleExceptionpublic ObjectId[] getIDs(String sql, ObjectId... objectId) throws KettleException
KettleExceptionpublic String[] getStrings(String sql, ObjectId... objectId) throws KettleException
KettleExceptionpublic void lockRepository()
throws KettleException
KettleExceptionpublic void unlockRepository()
throws KettleException
KettleExceptionpublic RowMetaInterface getStepAttributesRowMeta()
public boolean isUseBatchProcessing()
public void setStepAttributesRowMeta(RowMetaInterface stepAttributesRowMeta)
stepAttributesRowMeta - the stepAttributesRowMeta to setpublic LongObjectId getIDWithValue(String tablename, String idfield, String lookupfield, String value) throws KettleException
KettleExceptionpublic Map<String,LongObjectId> getValueToIdMap(String tablename, String idfield, String lookupfield) throws KettleException
KettleExceptionpublic LongObjectId[] getIDsWithValues(String tablename, String idfield, String lookupfield, String[] values) throws KettleException
KettleExceptionpublic ObjectId getIDWithValue(String tablename, String idfield, String lookupfield, String value, String lookupkey, ObjectId key) throws KettleException
KettleExceptionpublic ObjectId getIDWithValue(String tablename, String idfield, String[] lookupkey, ObjectId[] key) throws KettleException
KettleExceptionpublic LongObjectId getIDWithValue(String tablename, String idfield, String lookupfield, String value, String[] lookupkey, ObjectId[] key) throws KettleException
KettleExceptionpublic RowMetaAndData getOneRow(String schemaAndTable, String keyfield, ObjectId id) throws KettleException
KettleExceptionpublic RowMetaAndData getOneRow(String sql) throws KettleDatabaseException
KettleDatabaseExceptionpublic RowMetaAndData getOneRow(String sql, RowMetaInterface rowMeta, Object[] rowData) throws KettleDatabaseException
KettleDatabaseExceptionpublic String getStringWithID(String tablename, String keyfield, ObjectId id, String fieldname) throws KettleException
KettleExceptionpublic List<Object[]> getRows(String sql, int limit) throws KettleDatabaseException
KettleDatabaseExceptionpublic RowMetaInterface getReturnRowMeta() throws KettleDatabaseException
KettleDatabaseExceptionpublic void insertTableRow(String tablename, RowMetaAndData values) throws KettleException
KettleExceptionpublic Collection<RowMetaAndData> getDatabaseAttributes(ObjectId id_database) throws KettleDatabaseException, KettleValueException
public RowMetaAndData getParameterMetaData(ObjectId... ids) throws KettleException
KettleExceptionpublic void performDelete(String sql, ObjectId... ids) throws KettleException
KettleExceptionpublic void closeAttributeLookupPreparedStatements()
throws KettleException
KettleExceptionpublic void closeReadTransaction()
throws KettleDatabaseException
KettleDatabaseExceptionpublic <V> V callRead(Callable<V> callable) throws KettleDatabaseException
KettleDatabaseExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.